From patchwork Wed May 12 06:33:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 98921 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4C6YeNh002302 for ; Wed, 12 May 2010 06:34:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753232Ab0ELGeB (ORCPT ); Wed, 12 May 2010 02:34:01 -0400 Received: from mga11.intel.com ([192.55.52.93]:29104 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753292Ab0ELGd5 (ORCPT ); Wed, 12 May 2010 02:33:57 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 11 May 2010 23:31:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,212,1272870000"; d="scan'208";a="566374054" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.36.64]) by fmsmga002.fm.intel.com with ESMTP; 11 May 2010 23:33:10 -0700 Received: from yasker by syang10-desktop with local (Exim 4.71) (envelope-from ) id 1OC5VF-0005bk-9S; Wed, 12 May 2010 14:33:09 +0800 From: Sheng Yang To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org, Sheng Yang Subject: [PATCH 3/4] KVM: x86: Remove kvm_mmu_reset_context() in kvm_set_efer() Date: Wed, 12 May 2010 14:33:05 +0800 Message-Id: <1273645986-21526-3-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <4BEA4B2A.9060907@redhat.com> References: <4BEA4B2A.9060907@redhat.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 12 May 2010 06:34:40 +0000 (UTC) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 764f89b..b59fc67 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -721,7 +721,6 @@ static int set_efer(struct kvm_vcpu *vcpu, u64 efer) kvm_x86_ops->set_efer(vcpu, efer); vcpu->arch.mmu.base_role.nxe = (efer & EFER_NX) && !tdp_enabled; - kvm_mmu_reset_context(vcpu); return 0; }