]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: validate eptp pointer
authorDavid Hildenbrand <david@redhat.com>
Thu, 10 Aug 2017 21:36:54 +0000 (23:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Aug 2017 16:53:22 +0000 (18:53 +0200)
commitd3c428ee12443b19c03d23e627ed00078dc89ce0
treeadd9e059efc7aa4fad4777bf5d25997450877b9c
parent90245c95730f6b3053f1c9b60a16808dce6f42a5
KVM: nVMX: validate eptp pointer

Let's reuse the function introduced with eptp switching.

We don't explicitly have to check against enable_ept_ad_bits, as this
is implicitly done when checking against nested_vmx_ept_caps in
valid_ept_address().

Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c