[focal:linux-azure][PATCH 0/1] LP:#1881338 - linux-azure: Update SGX version to version LD_1.33

Marcelo Henrique Cerri marcelo.cerri at canonical.com
Tue Jun 9 16:51:42 UTC 2020


BugLink: https://bugs.launchpad.net/bugs/1881338

As requested by Microsoft. The change was tested on Azure ACC
instances as well on local Hyper-V instances. And only affect
linux-azure running on very specific instances types.

Unfortunately the driver repo uses a different directory structure and
the commits since the last update are not very organized and include
several revert and rename of file.

Because of that I decided to squash the update in a single commit
referring the driver repository changes.

Besides LD_1.33 change I added an additional #if around
sgx_encl_mm_release_deferred() in order to fix the compilation for
5.4. This change as approved my Microsoft and Intel.

Focal required a separate patches because we applied a small change
when 5.4 linux-azure was prepared.

---
Marcelo Henrique Cerri (1):
  UBUNTU: SAUCE: linux-azure: Update SGX to version LD_1.33

 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/dcap.h             |  39 ++
 arch/x86/include/uapi/asm/sgx.h     | 154 -----
 arch/x86/include/uapi/asm/sgx_oot.h | 114 ++++
 ubuntu/sgx/Makefile                 |  68 +-
 ubuntu/sgx/arch.h                   | 342 ++++++++++
 ubuntu/sgx/dkms.conf                |   6 +
 ubuntu/sgx/driver.c                 | 223 +++++++
 ubuntu/sgx/driver.h                 |  33 +
 ubuntu/sgx/encl.c                   | 821 +++++++++++++++++++++++
 ubuntu/sgx/encl.h                   | 132 ++++
 ubuntu/sgx/encls.h                  | 239 +++++++
 ubuntu/sgx/ioctl.c                  | 829 ++++++++++++++++++++++++
 ubuntu/sgx/main.c                   | 329 ++++++++++
 ubuntu/sgx/reclaim.c                | 505 +++++++++++++++
 ubuntu/sgx/sgx.h                    | 342 +++-------
 ubuntu/sgx/sgx_driver_info.h        |  62 --
 ubuntu/sgx/sgx_encl.c               | 973 ----------------------------
 ubuntu/sgx/sgx_ioctl.c              | 332 ----------
 ubuntu/sgx/sgx_main.c               | 498 --------------
 ubuntu/sgx/sgx_page_cache.c         | 596 -----------------
 ubuntu/sgx/sgx_util.c               | 382 -----------
 ubuntu/sgx/sgx_version.h            |  60 --
 ubuntu/sgx/sgx_vma.c                | 242 -------
 ubuntu/sgx/version.h                |  10 +
 27 files changed, 3708 insertions(+), 4214 deletions(-)
 delete mode 100644 arch/x86/include/asm/sgx.h
 delete mode 100755 arch/x86/include/asm/sgx_arch.h
 delete mode 100644 arch/x86/include/asm/sgx_pr.h
 create mode 100644 arch/x86/include/dcap.h
 delete mode 100644 arch/x86/include/uapi/asm/sgx.h
 create mode 100644 arch/x86/include/uapi/asm/sgx_oot.h
 create mode 100644 ubuntu/sgx/arch.h
 create mode 100644 ubuntu/sgx/dkms.conf
 create mode 100644 ubuntu/sgx/driver.c
 create mode 100644 ubuntu/sgx/driver.h
 create mode 100644 ubuntu/sgx/encl.c
 create mode 100644 ubuntu/sgx/encl.h
 create mode 100644 ubuntu/sgx/encls.h
 create mode 100644 ubuntu/sgx/ioctl.c
 create mode 100644 ubuntu/sgx/main.c
 create mode 100644 ubuntu/sgx/reclaim.c
 delete mode 100644 ubuntu/sgx/sgx_driver_info.h
 delete mode 100644 ubuntu/sgx/sgx_encl.c
 delete mode 100644 ubuntu/sgx/sgx_ioctl.c
 delete mode 100644 ubuntu/sgx/sgx_main.c
 delete mode 100644 ubuntu/sgx/sgx_page_cache.c
 delete mode 100644 ubuntu/sgx/sgx_util.c
 delete mode 100644 ubuntu/sgx/sgx_version.h
 delete mode 100644 ubuntu/sgx/sgx_vma.c
 create mode 100644 ubuntu/sgx/version.h

-- 
2.25.1




More information about the kernel-team mailing list