From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tang Chen Subject: Re: [PATCH 2/4] kvm: Add macro VMX_APIC_ACCESS_PAGE_ADDR Date: Thu, 3 Jul 2014 09:19:03 +0800 Message-ID: <53B4AF87.7010502@cn.fujitsu.com> References: <1404291637-15048-1-git-send-email-tangchen@cn.fujitsu.com> <1404291637-15048-3-git-send-email-tangchen@cn.fujitsu.com> <20140702162408.GB4399@minantech.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , , , , To: Gleb Natapov Return-path: In-Reply-To: <20140702162408.GB4399@minantech.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 07/03/2014 12:24 AM, Gleb Natapov wrote: > On Wed, Jul 02, 2014 at 05:00:35PM +0800, Tang Chen wrote: >> Define guest phys_addr of apic access page. >> --- >> arch/x86/include/asm/vmx.h | 2 +- >> arch/x86/kvm/svm.c | 3 ++- >> arch/x86/kvm/vmx.c | 7 ++++--- >> 3 files changed, 7 insertions(+), 5 deletions(-) >> >> diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h >> index 7004d21..c4672d1 100644 >> --- a/arch/x86/include/asm/vmx.h >> +++ b/arch/x86/include/asm/vmx.h >> @@ -422,7 +422,7 @@ enum vmcs_field { >> #define VMX_EPT_DIRTY_BIT (1ull<< 9) >> >> #define VMX_EPT_IDENTITY_PAGETABLE_ADDR 0xfffbc000ul >> - >> +#define VMX_APIC_ACCESS_PAGE_ADDR 0xfee00000ull >> > It has nothing to do with VMX and there is already define for that: APIC_DEFAULT_PHYS_BASE OK, followed.