From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Mattson Subject: [PATCH] kvm: nVMX: Correct a VMX instruction error code for VMPTRLD Date: Mon, 28 Nov 2016 15:50:06 -0800 Message-ID: <1480377006-27404-1-git-send-email-jmattson@google.com> Cc: GanShun , Jim Mattson To: kvm@vger.kernel.org Return-path: Received: from mail-pg0-f49.google.com ([74.125.83.49]:33556 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753647AbcK1Xuz (ORCPT ); Mon, 28 Nov 2016 18:50:55 -0500 Received: by mail-pg0-f49.google.com with SMTP id 3so62152929pgd.0 for ; Mon, 28 Nov 2016 15:50:55 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: From: GanShun When the operand passed to VMPTRLD matches the address of the VMXON region, the VMX instruction error code should be VMXERR_VMPTRLD_VMXON_POINTER rather than VMXERR_VMCLEAR_VMXON_POINTER. Signed-off-by: Jim Mattson --- arch/x86/kvm/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 0c4cde8..7e3a45e 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -6945,7 +6945,7 @@ static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason, if (vmptr == vmx->nested.vmxon_ptr) { nested_vmx_failValid(vcpu, - VMXERR_VMCLEAR_VMXON_POINTER); + VMXERR_VMPTRLD_VMXON_POINTER); skip_emulated_instruction(vcpu); return 1; } -- 2.8.0.rc3.226.g39d4020