Skip to content

x86/sgx: Use SRCU and mmu_notifier

Sean Christopherson linux-sgx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/sgx: Use SRCU to protect mm_list during reclaimarch/x86/Kconfig arch/x86/kernel/cpu/sgx/driver/main.c arch/x86/kernel/cpu/sgx/encl.c +2 more+124 -1561 reply
2/2x86/sgx: Use mmu_notifier.release() instead of per-vma refcountingarch/x86/Kconfig arch/x86/kernel/cpu/sgx/driver/main.c arch/x86/kernel/cpu/sgx/encl.c +1 more+71 -500 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH for_v21 v2 0/2] x86/sgx: Use SRCU and mmu_notifier

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(-)
Signature · 1 line
2.22.0