From: Paolo Bonzini Date: Fri, 18 Mar 2016 15:53:42 +0000 (+0100) Subject: KVM: VMX: avoid guest hang on invalid invvpid instruction X-Git-Tag: v4.6-rc1~46^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6870ee9e53430f2a318ccf0dd5e66bb46194e43;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 01f5158..0ce009c 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; }