linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] x86/sgx for v5.13
@ 2021-04-26 10:31 Borislav Petkov
  2021-04-26 16:22 ` Sean Christopherson
  2021-04-26 16:40 ` pr-tracker-bot
  0 siblings, 2 replies; 4+ messages in thread
From: Borislav Petkov @ 2021-04-26 10:31 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: x86-ml, lkml

Hi Linus,

please pull the SGX pile of updates for v5.13.

Thx.

---

The following changes since commit 1e28eed17697bcf343c6743f0028cc3b5dd88bf0:

  Linux 5.12-rc3 (2021-03-14 14:41:02 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_sgx_for_v5.13

for you to fetch changes up to 523caed9efbb049339706b124185c9358c1b6477:

  x86/sgx: Mark sgx_vepc_vm_ops static (2021-04-12 19:48:32 +0200)

----------------------------------------------------------------
Add the guest side of SGX support in KVM guests. Work by Sean
Christopherson, Kai Huang and Jarkko Sakkinen. Along with the usual
fixes, cleanups and improvements.

----------------------------------------------------------------
Dave Hansen (1):
      selftests/sgx: Improve error detection and messages

Ira Weiny (1):
      x86/sgx: Remove unnecessary kmap() from sgx_ioc_enclave_init()

Jarkko Sakkinen (3):
      x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list
      x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()
      x86/sgx: Do not update sgx_nr_free_pages in sgx_setup_epc_section()

Kai Huang (4):
      x86/cpufeatures: Make SGX_LC feature bit depend on SGX bit
      x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()
      x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled
      x86/sgx: Add helper to update SGX_LEPUBKEYHASHn MSRs

Sean Christopherson (10):
      x86/cpufeatures: Add SGX1 and SGX2 sub-features
      x86/sgx: Add SGX_CHILD_PRESENT hardware error code
      x86/sgx: Introduce virtual EPC for use by KVM guests
      x86/cpu/intel: Allow SGX virtualization without Launch Control support
      x86/sgx: Expose SGX architectural definitions to the kernel
      x86/sgx: Move ENCLS leaf definitions to sgx.h
      x86/sgx: Add SGX2 ENCLS leaf definitions (EAUG, EMODPR and EMODT)
      x86/sgx: Add encls_faulted() helper
      x86/sgx: Add helpers to expose ECREATE and EINIT to KVM
      x86/sgx: Move provisioning device creation out of SGX driver

Tianjia Zhang (1):
      selftests/sgx: Use getauxval() to simplify test code

Wei Yongjun (1):
      x86/sgx: Mark sgx_vepc_vm_ops static

 Documentation/x86/sgx.rst                          |  41 +++
 MAINTAINERS                                        |   1 +
 arch/x86/Kconfig                                   |   1 +
 arch/x86/include/asm/cpufeatures.h                 |   2 +
 .../{kernel/cpu/sgx/arch.h => include/asm/sgx.h}   |  50 ++-
 arch/x86/kernel/cpu/cpuid-deps.c                   |   3 +
 arch/x86/kernel/cpu/feat_ctl.c                     |  71 ++--
 arch/x86/kernel/cpu/scattered.c                    |   2 +
 arch/x86/kernel/cpu/sgx/Makefile                   |   1 +
 arch/x86/kernel/cpu/sgx/driver.c                   |  17 -
 arch/x86/kernel/cpu/sgx/encl.c                     |  33 +-
 arch/x86/kernel/cpu/sgx/encl.h                     |   1 +
 arch/x86/kernel/cpu/sgx/encls.h                    |  30 +-
 arch/x86/kernel/cpu/sgx/ioctl.c                    |  43 +--
 arch/x86/kernel/cpu/sgx/main.c                     | 264 ++++++++++-----
 arch/x86/kernel/cpu/sgx/sgx.h                      |  40 ++-
 arch/x86/kernel/cpu/sgx/virt.c                     | 376 +++++++++++++++++++++
 arch/x86/kvm/Kconfig                               |  12 +
 tools/testing/selftests/sgx/defines.h              |   2 +-
 tools/testing/selftests/sgx/load.c                 |  69 +++-
 tools/testing/selftests/sgx/main.c                 |  26 +-
 21 files changed, 861 insertions(+), 224 deletions(-)
 rename arch/x86/{kernel/cpu/sgx/arch.h => include/asm/sgx.h} (89%)
 create mode 100644 arch/x86/kernel/cpu/sgx/virt.c

-- 
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] x86/sgx for v5.13
  2021-04-26 10:31 [GIT PULL] x86/sgx for v5.13 Borislav Petkov
@ 2021-04-26 16:22 ` Sean Christopherson
  2021-04-26 16:53   ` Linus Torvalds
  2021-04-26 16:40 ` pr-tracker-bot
  1 sibling, 1 reply; 4+ messages in thread
From: Sean Christopherson @ 2021-04-26 16:22 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: Linus Torvalds, x86-ml, lkml

On Mon, Apr 26, 2021, Borislav Petkov wrote:
> Hi Linus,
> 
> please pull the SGX pile of updates for v5.13.
> 
> Thx.
> 
> ---
> 
> The following changes since commit 1e28eed17697bcf343c6743f0028cc3b5dd88bf0:
> 
>   Linux 5.12-rc3 (2021-03-14 14:41:02 -0700)
> 
> are available in the Git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_sgx_for_v5.13
> 
> for you to fetch changes up to 523caed9efbb049339706b124185c9358c1b6477:
> 
>   x86/sgx: Mark sgx_vepc_vm_ops static (2021-04-12 19:48:32 +0200)
> 
> ----------------------------------------------------------------
> Add the guest side of SGX support in KVM guests. Work by Sean

This is all host side code, there are no guest specific changes required.  Maybe
"Add the non-KVM kernel bits for SGX support in KVM guests."

Thanks!

> Christopherson, Kai Huang and Jarkko Sakkinen. Along with the usual
> fixes, cleanups and improvements.
> 
> ----------------------------------------------------------------
> Dave Hansen (1):
>       selftests/sgx: Improve error detection and messages
> 
> Ira Weiny (1):
>       x86/sgx: Remove unnecessary kmap() from sgx_ioc_enclave_init()
> 
> Jarkko Sakkinen (3):
>       x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list
>       x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()
>       x86/sgx: Do not update sgx_nr_free_pages in sgx_setup_epc_section()
> 
> Kai Huang (4):
>       x86/cpufeatures: Make SGX_LC feature bit depend on SGX bit
>       x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()
>       x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled
>       x86/sgx: Add helper to update SGX_LEPUBKEYHASHn MSRs
> 
> Sean Christopherson (10):
>       x86/cpufeatures: Add SGX1 and SGX2 sub-features
>       x86/sgx: Add SGX_CHILD_PRESENT hardware error code
>       x86/sgx: Introduce virtual EPC for use by KVM guests
>       x86/cpu/intel: Allow SGX virtualization without Launch Control support
>       x86/sgx: Expose SGX architectural definitions to the kernel
>       x86/sgx: Move ENCLS leaf definitions to sgx.h
>       x86/sgx: Add SGX2 ENCLS leaf definitions (EAUG, EMODPR and EMODT)
>       x86/sgx: Add encls_faulted() helper
>       x86/sgx: Add helpers to expose ECREATE and EINIT to KVM
>       x86/sgx: Move provisioning device creation out of SGX driver
> 
> Tianjia Zhang (1):
>       selftests/sgx: Use getauxval() to simplify test code
> 
> Wei Yongjun (1):
>       x86/sgx: Mark sgx_vepc_vm_ops static

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] x86/sgx for v5.13
  2021-04-26 10:31 [GIT PULL] x86/sgx for v5.13 Borislav Petkov
  2021-04-26 16:22 ` Sean Christopherson
@ 2021-04-26 16:40 ` pr-tracker-bot
  1 sibling, 0 replies; 4+ messages in thread
From: pr-tracker-bot @ 2021-04-26 16:40 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: Linus Torvalds, x86-ml, lkml

The pull request you sent on Mon, 26 Apr 2021 12:31:35 +0200:

> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_sgx_for_v5.13

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/81a489790a4b9e269dbfc50aa054e71d554a910b

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] x86/sgx for v5.13
  2021-04-26 16:22 ` Sean Christopherson
@ 2021-04-26 16:53   ` Linus Torvalds
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2021-04-26 16:53 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: Borislav Petkov, x86-ml, lkml

On Mon, Apr 26, 2021 at 9:22 AM Sean Christopherson <seanjc@google.com> wrote:
>
> This is all host side code, there are no guest specific changes required.  Maybe
> "Add the non-KVM kernel bits for SGX support in KVM guests."

Sadly, this comment came in a couple of minutes after I had already
done the merge, so the updated merge message didn't make it..

                Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-26 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 10:31 [GIT PULL] x86/sgx for v5.13 Borislav Petkov
2021-04-26 16:22 ` Sean Christopherson
2021-04-26 16:53   ` Linus Torvalds
2021-04-26 16:40 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).