diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-18 16:53:29 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-21 11:23:56 +0100 |
commit | 7800df9ea6dc122c66cb769fceb00cfa497267bd (patch) | |
tree | 1b160954ed8b0c9dec32fa86dcfa4a6f2dea604e | |
parent | 643ad15d47410d37d43daf3ef1c8ac52c281efa5 (diff) | |
download | kvm-7800df9ea6dc122c66cb769fceb00cfa497267bd.tar.gz |
KVM: VMX: avoid guest hang on invalid invept instruction
A guest executing an invalid invept instruction would hang
because the instruction pointer was not updated.
Cc: stable@vger.kernel.org
Fixes: bfd0a56b90005f8c8a004baf407ad90045c2b11e
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/vmx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 75173efccac552..01f515873637ce 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -7399,6 +7399,7 @@ static int handle_invept(struct kvm_vcpu *vcpu) if (!(types & (1UL << type))) { nested_vmx_failValid(vcpu, VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID); + skip_emulated_instruction(vcpu); return 1; } |