On 04/11/2012 01:21 PM, Joerg Roedel wrote: > 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? He's determining the layout at runtime. It should even work with kvm's vmx implementation. It's vulnerable to two issues: - fields that are cached in the processor and not flushed to memory (perhaps just make sure to VMXOFF before dumping memory) - fields that are encoded differently in memory than VMREAD/VMWRITE -- error compiling committee.c: too many arguments to function