summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2019-08-27 14:40:30 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2019-09-24 14:30:42 +0200
commita6c6ed1e81060e110258dbc7118fda07e9971e48 (patch)
treef41ba64d257449f8a77369b0ca0b2f93034994b0 /arch/x86/include/asm/kvm_host.h
parent120c2c4f99a80ef8682867b41e82d4e5d6b49635 (diff)
downloadlinux-stable-a6c6ed1e81060e110258dbc7118fda07e9971e48.tar.gz
linux-stable-a6c6ed1e81060e110258dbc7118fda07e9971e48.tar.bz2
linux-stable-a6c6ed1e81060e110258dbc7118fda07e9971e48.zip
KVM: x86: Don't attempt VMWare emulation on #GP with non-zero error code
The VMware backdoor hooks #GP faults on IN{S}, OUT{S}, and RDPMC, none of which generate a non-zero error code for their #GP. Re-injecting #GP instead of attempting emulation on a non-zero error code will allow a future patch to move #GP injection (for emulation failure) into kvm_emulate_instruction() without having to plumb in the error code. Reviewed-and-tested-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Liran Alon <liran.alon@oracle.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
0 files changed, 0 insertions, 0 deletions