]> git.baikalelectronics.ru Git - kernel.git/commit
x86: kvm: mmu: make spte mmio mask more explicit
authorPeter Feiner <pfeiner@google.com>
Sat, 1 Jul 2017 00:26:30 +0000 (17:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jul 2017 08:43:31 +0000 (10:43 +0200)
commit37f3e03d3740a058c49f604e558eca0f6be94a59
tree3b75f3d0972d24d532ac11c5f1c73b686649f48c
parent8fc79701f1a46f5fcadbff79be6701d41e258364
x86: kvm: mmu: make spte mmio mask more explicit

Specify both a mask (i.e., bits to consider) and a value (i.e.,
pattern of bits that indicates a special PTE) for mmio SPTEs. On
Intel, this lets us pack even more information into the
(SPTE_SPECIAL_MASK | EPT_VMX_RWX_MASK) mask we use for access
tracking liberating all (SPTE_SPECIAL_MASK | (non-misconfigured-RWX))
values.

Signed-off-by: Peter Feiner <pfeiner@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c