]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: mmu: don't set the present bit unconditionally
authorBandan Das <bsd@redhat.com>
Tue, 12 Jul 2016 22:18:49 +0000 (18:18 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jul 2016 07:03:14 +0000 (09:03 +0200)
commit17282f132b7898ac5f78027b71c9442cc9ee90e0
tree2343268f9b507a99abf34bf20d99b1158488b67e
parentd9c9b04609cb40dae5e53d1f7877edf43aaef190
kvm: mmu: don't set the present bit unconditionally

To support execute only mappings on behalf of L1
hypervisors, we need to teach set_spte() to honor all three of
L1's XWR bits.  As a start, add a new variable "shadow_present_mask"
that will be set for non-EPT shadow paging and clear for EPT.

Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c