]> 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)
commit57fc015c3f3229f6f6e8cae46a2af754cd9bec51
tree476204890c39af7daaeb8ee4edd37cde57d20153
parent618467aecdfd588de257d576e83dd0610a2eab22
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