[PATCH 0/3] KVM: MMU: fix SMAP virtualization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are some bugs in current code:
- the PFEC.RSVD is not always true and KVM reuses this bit to cache
  CPL and flags.AC bit

- the shadow page will be resued for SMAP enabled and SMAP disabled,
  however, user page will be turned to kernel page under some cases
  so that SMAP check is missed on that entry

This patchset fixes these bugs and a test case will be posted out soon

Xiao Guangrong (3):
  KVM: MMU: fix smap permission check
  KVM: MMU: fix SMAP virtualization
  KVM: MMU: document smap_andnot_wp

 Documentation/virtual/kvm/mmu.txt | 18 ++++++++++++++----
 arch/x86/include/asm/kvm_host.h   |  1 +
 arch/x86/kvm/mmu.c                |  7 +++++--
 arch/x86/kvm/mmu.h                |  4 ++--
 arch/x86/kvm/paging_tmpl.h        |  7 +++++++
 arch/x86/kvm/x86.c                |  8 +++-----
 6 files changed, 32 insertions(+), 13 deletions(-)

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux