From patchwork Tue Sep 17 11:05:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 1163311 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46XgJm4mRwz9sNw; Tue, 17 Sep 2019 21:06:00 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iABIu-0003b6-6y; Tue, 17 Sep 2019 11:05:52 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iABIs-0003ac-Mr for kernel-team@lists.ubuntu.com; Tue, 17 Sep 2019 11:05:50 +0000 Received: from mail-wm1-f70.google.com ([209.85.128.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iABIs-0007zF-6Y for kernel-team@lists.ubuntu.com; Tue, 17 Sep 2019 11:05:50 +0000 Received: by mail-wm1-f70.google.com with SMTP id m6so722260wmf.2 for ; Tue, 17 Sep 2019 04:05:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=CfkpJfObt3Yw7lnX9NV17uZn+FgloyIuTOE0CH5BTMg=; b=M+QwfjWnwU/tOGrt7cTL+7C8aEJDfURQ8FoUxfsWv9Wdbw5Rv3M9LE6319yV9yNCwZ kafzVtEstV2vDYObnNHzOUEdakK/cR6EGtGWhSGFqdvDaZycwHj7VetBWJjDK4ZUKX9A IH8DXN+0biwuqkTzW2R2+VgvKiFYqTf1mhkYY1My7iRYaoYukijLEXUZZJJaHgoB+6nD PAVCvA8QYUIPTpz5M/WXBFVNz6Ad8RgPMAeGEuECkIlDefw8jxs9ql88HfaunsF9mRE7 3oD7F7K/44CmywwFR+JN0m73vxu0zzE9bdVUzKLbBxJKRk7INpJ9P62h1Ekt95O1k5LB RNBQ== X-Gm-Message-State: APjAAAVPEGEo3MGGceGly3oX73T1mGti1sqgZRSL7EB/n2yUO9tlsb/q Y+fTL29RufODO2ZkHZ+WQ3j6wwmh7cUVIqXf7YF3HOFBxZI4EmMVz8N6VVPeoLmIcuPeL/ewRGy cgWbrdrs4FkFteIWZzLPXEfVw0CAgHEB9WptEQ/t/ X-Received: by 2002:a05:600c:2151:: with SMTP id v17mr2580359wml.56.1568718349550; Tue, 17 Sep 2019 04:05:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjIg9ehWZspN6dA1G3XRJ1Si+GKO8HKSWe9H6Q9k7FpulmhRW7ISimgDBlyDBhoA13D7PP5g== X-Received: by 2002:a05:600c:2151:: with SMTP id v17mr2580342wml.56.1568718349277; Tue, 17 Sep 2019 04:05:49 -0700 (PDT) Received: from localhost.localdomain (static-dcd-cqq-121001.business.bouyguestelecom.com. [212.194.121.1]) by smtp.gmail.com with ESMTPSA id y13sm4686264wrg.8.2019.09.17.04.05.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 04:05:48 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [disco:linux-azure, xenial:linux-azure][PATCH 0/3] LP: #1844245 - Integrate Intel SGX driver into linux-azure Date: Tue, 17 Sep 2019 08:05:44 -0300 Message-Id: <20190917110547.22517-1-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1844245 Add Intel SGX driver as a sauce driver. I added a script to fetch the latest version of the driver source code to simplify the process of syncing it with Intel's repository in the future. Marcelo Henrique Cerri (3): UBUNTU: SAUCE: sgx-update: Add script to fetch SGX from Intel repo UBUNTU: [Config] linux-azure: Include Intel SGX driver to the main modules package UBUNTU: SAUCE: Update ubuntu/sgx driver to 555c485012b6 arch/x86/include/asm/sgx.h | 233 +++++ arch/x86/include/asm/sgx_arch.h | 278 ++++++ arch/x86/include/asm/sgx_pr.h | 80 ++ arch/x86/include/uapi/asm/sgx.h | 154 ++++ debian.azure/control.d/azure.inclusion-list | 1 + ubuntu/Makefile | 4 + ubuntu/sgx-update | 33 + ubuntu/sgx/License.txt | 46 + ubuntu/sgx/Makefile | 79 ++ ubuntu/sgx/README.md | 114 +++ ubuntu/sgx/sgx.h | 286 ++++++ ubuntu/sgx/sgx_encl.c | 972 ++++++++++++++++++++ ubuntu/sgx/sgx_ioctl.c | 332 +++++++ ubuntu/sgx/sgx_main.c | 476 ++++++++++ ubuntu/sgx/sgx_page_cache.c | 593 ++++++++++++ ubuntu/sgx/sgx_util.c | 381 ++++++++ ubuntu/sgx/sgx_version.h | 60 ++ ubuntu/sgx/sgx_vma.c | 245 +++++ ubuntu/sgx/sgx_wl.h | 82 ++ 19 files changed, 4449 insertions(+) create mode 100644 arch/x86/include/asm/sgx.h create mode 100644 arch/x86/include/asm/sgx_arch.h create mode 100644 arch/x86/include/asm/sgx_pr.h create mode 100644 arch/x86/include/uapi/asm/sgx.h create mode 100755 ubuntu/sgx-update create mode 100644 ubuntu/sgx/License.txt create mode 100644 ubuntu/sgx/Makefile create mode 100644 ubuntu/sgx/README.md create mode 100644 ubuntu/sgx/sgx.h create mode 100644 ubuntu/sgx/sgx_encl.c create mode 100644 ubuntu/sgx/sgx_ioctl.c create mode 100644 ubuntu/sgx/sgx_main.c create mode 100644 ubuntu/sgx/sgx_page_cache.c create mode 100644 ubuntu/sgx/sgx_util.c create mode 100644 ubuntu/sgx/sgx_version.h create mode 100644 ubuntu/sgx/sgx_vma.c create mode 100644 ubuntu/sgx/sgx_wl.h