]> 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)
commit14dffc75d287b0ae2b666d75d6570e841453bbc7
tree3b75f3d0972d24d532ac11c5f1c73b686649f48c
parent1954515e4ae8c8304b25b7802f017632a0a00cb0
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