From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH] KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr Date: Thu, 14 Feb 2013 10:35:35 +0200 Message-ID: <20130214083535.GJ9817@redhat.com> References: <5118D3C0.70501@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcelo Tosatti , kvm , "Nadav Har'El" To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:41795 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932311Ab3BNIfp (ORCPT ); Thu, 14 Feb 2013 03:35:45 -0500 Content-Disposition: inline In-Reply-To: <5118D3C0.70501@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Feb 11, 2013 at 12:19:28PM +0100, Jan Kiszka wrote: > We already pass vmcs12 as argument. > > Signed-off-by: Jan Kiszka Thanks, applied. > --- > arch/x86/kvm/vmx.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > index 64e1233..4339355c 100644 > --- a/arch/x86/kvm/vmx.c > +++ b/arch/x86/kvm/vmx.c > @@ -5976,7 +5976,7 @@ static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu, > u32 msr_index = vcpu->arch.regs[VCPU_REGS_RCX]; > gpa_t bitmap; > > - if (!nested_cpu_has(get_vmcs12(vcpu), CPU_BASED_USE_MSR_BITMAPS)) > + if (!nested_cpu_has(vmcs12, CPU_BASED_USE_MSR_BITMAPS)) > return 1; > > /* > -- > 1.7.3.4 -- Gleb.