Skip to content

KVM: X86: permission_fault() for SMAP

Lai Jiangshan kvm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v14 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5KVM: X86: Change the type of access u32 to u64arch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +2 more+23 -210 replies
2/5KVM: X86: Fix comments in update_permission_bitmaskarch/x86/kvm/mmu/mmu.c+2 -20 replies
3/5KVM: X86: Rename variable smap to not_smap in permission_fault()arch/x86/kvm/mmu.h+2 -20 replies
4/5KVM: X86: Handle implicit supervisor access with SMAParch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +1 more+21 -171 reply
5/5KVM: X86: Only get rflags when needed in permission_fault()arch/x86/kvm/mmu.h+23 -50 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/5] KVM: X86: permission_fault() for SMAP

From: Lai Jiangshan <[email protected]>

Some change in permission_fault() for SMAP. It also reduces calls two callbacks to get CPL and RFLAGS in come cases, but it has not any measurable performance change in tests (kernel build in guest).

Changed from 1:
gross implicit access into @access as Sean suggested.

Use my official email address (Ant Group). The work is backed by my company and I was incorrectly misunderstood that [email protected] is the only portal for opensource work in the corporate group.

[V1]: https://lore.kernel.org/kvm/[email protected]/

Lai Jiangshan (6):
KVM: X86: Change the type of access u32 to u64
KVM: X86: Fix comments in update_permission_bitmask
KVM: X86: Rename variable smap to not_smap in permission_fault()
KVM: X86: Handle implicit supervisor access with SMAP
KVM: X86: Only get rflags when needed in permission_fault()
KVM: X86: Propagate the nested page fault info to the guest

 arch/x86/include/asm/kvm_host.h |  6 +++-
 arch/x86/kvm/kvm_emulate.h      |  3 +-
 arch/x86/kvm/mmu.h              | 54 ++++++++++++++++++++++-----------
 arch/x86/kvm/mmu/mmu.c          | 10 +++---
 arch/x86/kvm/mmu/paging_tmpl.h  | 16 ++++++----
 arch/x86/kvm/svm/nested.c       | 10 ++----
 arch/x86/kvm/vmx/nested.c       | 11 +++++++
 arch/x86/kvm/x86.c              | 32 ++++++++++---------
 8 files changed, 89 insertions(+), 53 deletions(-)
Signature · 1 line
2.19.1.6.gb485710b