kvm: nVMX: Prepare for checkpointing L2 state
authorJim Mattson <jmattson@google.com>
Wed, 30 Nov 2016 20:03:42 +0000 (12:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Feb 2017 13:54:36 +0000 (14:54 +0100)
commitcf8b84f48a5936f558a7a415f1d2f42161bf73eb
tree476204890c39af7daaeb8ee4edd37cde57d20153
parentb95234c840045b7c72380fd14c59416af28fcb02
kvm: nVMX: Prepare for checkpointing L2 state

Split prepare_vmcs12 into two parts: the part that stores the current L2
guest state and the part that sets up the exit information fields. The
former will be used when checkpointing the vCPU's VMX state.

Modify prepare_vmcs02 so that it can construct a vmcs02 midway through
L2 execution, using the checkpointed L2 guest state saved into the
cached vmcs12 above.

Signed-off-by: Jim Mattson <jmattson@google.com>
[Rebasing: add from_vmentry argument to prepare_vmcs02 instead of using
 vmx->nested.nested_run_pending, because it is no longer 1 at the
 point prepare_vmcs02 is called. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c