From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Mattson Subject: Re: [PATCH] kvm: nVMX: Correct a VMX instruction error code for VMPTRLD Date: Wed, 30 Nov 2016 09:54:21 -0800 Message-ID: References: <1480377006-27404-1-git-send-email-jmattson@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: GanShun , Jim Mattson To: kvm@vger.kernel.org Return-path: Received: from mail-ua0-f173.google.com ([209.85.217.173]:33916 "EHLO mail-ua0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbcK3RyW (ORCPT ); Wed, 30 Nov 2016 12:54:22 -0500 Received: by mail-ua0-f173.google.com with SMTP id 51so221212716uai.1 for ; Wed, 30 Nov 2016 09:54:22 -0800 (PST) In-Reply-To: <1480377006-27404-1-git-send-email-jmattson@google.com> Sender: kvm-owner@vger.kernel.org List-ID: Sigh. Mis-applied patch. Update forthcoming. On Mon, Nov 28, 2016 at 3:50 PM, Jim Mattson wrote: > 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 >