KVM: nVMX: Prepare vmcs02 from vmcs01 and vmcs12
authorNadav Har'El <nyh@il.ibm.com>
Wed, 25 May 2011 20:10:02 +0000 (23:10 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:14 +0000 (11:45 +0300)
commitfe3ef05c7572d68721c1ddd4d36009611f565ba2
treea26236a08fa32a1d312842e88380a24a4f5189c9
parentbf8179a011d40e7322d34440039b5e86a0d03aed
KVM: nVMX: Prepare vmcs02 from vmcs01 and vmcs12

This patch contains code to prepare the VMCS which can be used to actually
run the L2 guest, vmcs02. prepare_vmcs02 appropriately merges the information
in vmcs12 (the vmcs that L1 built for L2) and in vmcs01 (our desires for our
own guests).

Signed-off-by: Nadav Har'El <nyh@il.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c