From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755967Ab2AJMWQ (ORCPT ); Tue, 10 Jan 2012 07:22:16 -0500 Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145]:53971 "EHLO homiemail-a3.g.dreamhost.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755314Ab2AJMWO (ORCPT ); Tue, 10 Jan 2012 07:22:14 -0500 Subject: Re: [PATCH] KVM: MMU: unnecessary NX state assignment From: Davidlohr Bueso Reply-To: dave@gnu.org To: Avi Kivity Cc: Marcelo Tosatti , lkml , kvm@vger.kernel.org In-Reply-To: <1325858778.3395.4.camel@offbook> References: <1325858778.3395.4.camel@offbook> Content-Type: text/plain; charset="UTF-8" Organization: GNU Date: Tue, 10 Jan 2012 13:22:09 +0100 Message-ID: <1326198129.3240.0.camel@offbook> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping On Fri, 2012-01-06 at 15:06 +0100, Davidlohr Bueso wrote: > From: Davidlohr Bueso > > We can remove the first ->nx state assignment since it is assigned afterwards anyways. > > Signed-off-by: Davidlohr Bueso > --- > arch/x86/kvm/mmu.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c > index f1b36cf..efc0dd2 100644 > --- a/arch/x86/kvm/mmu.c > +++ b/arch/x86/kvm/mmu.c > @@ -3320,7 +3320,6 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu) > context->get_cr3 = get_cr3; > context->get_pdptr = kvm_pdptr_read; > context->inject_page_fault = kvm_inject_page_fault; > - context->nx = is_nx(vcpu); > > if (!is_paging(vcpu)) { > context->nx = false;