From patchwork Mon Aug 3 16:23:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 38924 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n73GMchP020715 for ; Mon, 3 Aug 2009 16:22:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755397AbZHCQWf (ORCPT ); Mon, 3 Aug 2009 12:22:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755394AbZHCQWf (ORCPT ); Mon, 3 Aug 2009 12:22:35 -0400 Received: from mga01.intel.com ([192.55.52.88]:30563 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755387AbZHCQWe (ORCPT ); Mon, 3 Aug 2009 12:22:34 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 03 Aug 2009 09:20:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.43,315,1246863600"; d="scan'208";a="713486272" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.13.29]) by fmsmga001.fm.intel.com with ESMTP; 03 Aug 2009 09:25:39 -0700 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1MY0Jf-0005B3-1n; Tue, 04 Aug 2009 00:23:15 +0800 From: Sheng Yang To: Avi Kivity Cc: Marcelo Tosatti , Jan Kiszka , kvm@vger.kernel.org, Sheng Yang Subject: [PATCH] KVM: Fix EPT identity page location Date: Tue, 4 Aug 2009 00:23:14 +0800 Message-Id: <1249316595-19882-1-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.6.0.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Should be new ept_identity_map_addr rather than old macro. Signed-off-by: Sheng Yang --- 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 7931c72..c5aaa1b 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2199,7 +2199,7 @@ static int alloc_identity_pagetable(struct kvm *kvm) goto out; kvm->arch.ept_identity_pagetable = gfn_to_page(kvm, - VMX_EPT_IDENTITY_PAGETABLE_ADDR >> PAGE_SHIFT); + kvm->arch.ept_identity_map_addr >> PAGE_SHIFT); out: up_write(&kvm->slots_lock); return r;