[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F856422.6010904@cn.fujitsu.com>
Date: Wed, 11 Apr 2012 18:59:46 +0800
From: zhangyanfei <zhangyanfei@...fujitsu.com>
To: Joerg Roedel <joerg.roedel@....com>
CC: avi@...hat.com, mtosatti@...hat.com, ebiederm@...ssion.com,
luto@....edu, dzickus@...hat.com, paul.gortmaker@...driver.com,
gregkh@...e.de, ludwig.nussel@...e.de,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
kexec@...ts.infradead.org
Subject: Re: [PATCH 0/4] Export offsets of VMCS fields as note information
for kdump
于 2012年04月11日 18:21, Joerg Roedel 写道:
> Hi,
>
> On Wed, Apr 11, 2012 at 09:39:43AM +0800, zhangyanfei wrote:
>> The problem is that VMCS internal is hidden by Intel in its
>> specification. So, we reverse engineering it in the way implemented in
>> this patch set.
>
> Have you made sure this layout is the same on all uarchitectures that
> implment VMX?
>
>
> Joerg
>
The layout differs from each other in different VMCS revision identifiers.
The VMCS revision identifier is contained at the first 32 bits of the VMCS
region. And the VMCS revision identifiers may differ from different architectures.
for example, there are two processors below:
Processor 1: Intel(R) Xeon(R) CPU E7540 @ 2.00GHz with 24 cores
REVISION_ID=e
FIELD(PIN_BASED_VM_EXEC_CONTROL)=05540550
FIELD(CPU_BASED_VM_EXEC_CONTROL)=05440540
FIELD(SECONDARY_VM_EXEC_CONTROL)=054c0548
FIELD(VM_EXIT_CONTROLS) = 057c0578
FIELD(VM_ENTRY_CONTROLS)= 05940590
......
Processor 2: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
REVISION_ID=d
FIELD(PIN_BASED_VM_EXEC_CONTROL)=01840180
FIELD(CPU_BASED_VM_EXEC_CONTROL)=01940190
FIELD(SECONDARY_VM_EXEC_CONTROL)=0fe40fe0
FIELD(VM_EXIT_CONTROLS) = 01e401e0
FIELD(VM_ENTRY_CONTROLS)= 03140310
The purpose to get the VMCSINFO of one architecture is for guest debugging that was
running on the same architecture, so there is no problem the layouts differ from different
architectures.
Thanks
Zhang Yanfei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists