]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb44a75069183ea4b536ef4301a31057b4360718
tree476204890c39af7daaeb8ee4edd37cde57d20153
parent7b3a8cc8c508717def0e104b73a0a3d9195a0c16
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