From patchwork Tue May 11 05:30:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 98602 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 o4B5V3iA025648 for ; Tue, 11 May 2010 05:31:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751925Ab0EKFaz (ORCPT ); Tue, 11 May 2010 01:30:55 -0400 Received: from mga11.intel.com ([192.55.52.93]:23976 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751561Ab0EKFaw (ORCPT ); Tue, 11 May 2010 01:30:52 -0400 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 10 May 2010 22:28:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,205,1272870000"; d="scan'208";a="566001260" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.36.64]) by fmsmga002.fm.intel.com with ESMTP; 10 May 2010 22:30:06 -0700 Received: from yasker by syang10-desktop with local (Exim 4.71) (envelope-from ) id 1OBi2v-00030a-H9; Tue, 11 May 2010 13:30:21 +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: Tue, 11 May 2010 13:30:06 +0800 Message-Id: <1273555807-11534-3-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1273555807-11534-1-git-send-email-sheng@linux.intel.com> References: <1273555807-11534-1-git-send-email-sheng@linux.intel.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]); Tue, 11 May 2010 05:31:04 +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; }