mbox series

[for_v21,v2,0/2] x86/sgx: Use SRCU and mmu_notifier

Message ID 20190712034138.18564-1-sean.j.christopherson@intel.com (mailing list archive)
Headers show
Series x86/sgx: Use SRCU and mmu_notifier | expand

Message

Sean Christopherson July 12, 2019, 3:41 a.m. UTC
Move to SRCU to eliminate custom list walker, and optionally use
mmu_notifier in lieu of refcounting VMAs to avoid defining ->close.

v2: Rebase to latest master.

Sean Christopherson (2):
  x86/sgx: Use SRCU to protect mm_list during reclaim
  x86/sgx: Use mmu_notifier.release() instead of per-vma refcounting

 arch/x86/Kconfig                      |   2 +
 arch/x86/kernel/cpu/sgx/driver/main.c |  60 +++++----
 arch/x86/kernel/cpu/sgx/encl.c        | 182 +++++++++++++-------------
 arch/x86/kernel/cpu/sgx/encl.h        |  12 +-
 arch/x86/kernel/cpu/sgx/reclaim.c     |  71 ++++------
 5 files changed, 158 insertions(+), 169 deletions(-)

Comments

Jarkko Sakkinen July 12, 2019, 4:20 a.m. UTC | #1
On Thu, Jul 11, 2019 at 08:41:36PM -0700, Sean Christopherson wrote:
> Move to SRCU to eliminate custom list walker, and optionally use
> mmu_notifier in lieu of refcounting VMAs to avoid defining ->close.
> 
> v2: Rebase to latest master.

Oh you were fast, thanks :-)

/Jarkko