diff options
author | 2016-03-18 16:53:42 +0100 | |
---|---|---|
committer | 2016-03-22 12:02:42 +0100 | |
commit | f6870ee9e53430f2a318ccf0dd5e66bb46194e43 (patch) | |
tree | 376b96546f0825a15698022166d6f91546b59874 /arch/x86 | |
parent | KVM: VMX: avoid guest hang on invalid invept instruction (diff) | |
download | linux-f6870ee9e53430f2a318ccf0dd5e66bb46194e43.tar.gz linux-f6870ee9e53430f2a318ccf0dd5e66bb46194e43.tar.bz2 linux-f6870ee9e53430f2a318ccf0dd5e66bb46194e43.zip |
KVM: VMX: avoid guest hang on invalid invvpid instruction
A guest executing an invalid invvpid instruction would hang
because the instruction pointer was not updated.
Reported-by: jmontleo@redhat.com
Tested-by: jmontleo@redhat.com
Cc: stable@vger.kernel.org
Fixes: 99b83ac893b84ed1a62ad6d1f2b6cc32026b9e85
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-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 01f515873637..0ce009cc23f1 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -7458,6 +7458,7 @@ static int handle_invvpid(struct kvm_vcpu *vcpu) if (!(types & (1UL << type))) { nested_vmx_failValid(vcpu, VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID); + skip_emulated_instruction(vcpu); return 1; } |