KVM: nVMX: fix instruction skipping during emulated vm-entry
authorDavid Matlack <dmatlack@google.com>
Mon, 19 Dec 2016 20:48:41 +0000 (12:48 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Dec 2016 17:55:09 +0000 (18:55 +0100)
commitb428018a065b62191b9f8a3f553ebf4423017a78
tree2f0f76fa4e6cf73413905d5459983c7c9a8f2499
parentef85b67385436ddc1998f45f1d6a210f935b3388
KVM: nVMX: fix instruction skipping during emulated vm-entry

kvm_skip_emulated_instruction() should not be called after emulating
a VM-entry failure during or after loading guest state
(nested_vmx_entry_failure()). Otherwise the L1 hypervisor is resumed
some number of bytes past vmcs->host_rip.

Fixes: eb2775621701e6ee3ea2a474437d04e93ccdcb2f
Signed-off-by: David Matlack <dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c