]> 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)
commit5ed1320faa4926a20c0616958fd9f8e5af26683a
tree23c3de5f29910e735166aca41afeca2107c9486e
parentf8bac100787f2a0e2a1bcd7c17f159a09f0d5bac
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