]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: remove bogus check for invalid EPT violation
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Mar 2017 09:55:28 +0000 (11:55 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Fri, 7 Apr 2017 14:49:00 +0000 (16:49 +0200)
commitd3990c03c78111176e28ff42b195b9aa39092787
tree23c3de5f29910e735166aca41afeca2107c9486e
parentfd6157f25f11f070a95627678e7eac748516a835
KVM: VMX: remove bogus check for invalid EPT violation

handle_ept_violation is checking for "guest-linear-address invalid" +
"not a paging-structure walk".  However, _all_ EPT violations without
a valid guest linear address are paging structure walks, because those
EPT violations happen when loading the guest PDPTEs.

Therefore, the check can never be true, and even if it were, KVM doesn't
care about the guest linear address; it only uses the guest *physical*
address VMCS field.  So, remove the check altogether.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c