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)
commita057e0e22ca11d04959648694945ebcc44873159
treeadd9e059efc7aa4fad4777bf5d25997450877b9c
parenta170504f9f6d4835e042edf4c764a21594acc79c
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