kvm: nVMX: Refactor nested_vmx_run()
authorJim Mattson <jmattson@google.com>
Wed, 30 Nov 2016 20:03:47 +0000 (12:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Feb 2017 13:56:36 +0000 (14:56 +0100)
commit858e25c06fb0bc4b39b2f01c14c990348e3a9b67
treecbd73f2124b4fbb40dc137a150ca8caf43443df5
parentca0bde28f2ed66c2229ecfb7f4bfa0defa3da4b5
kvm: nVMX: Refactor nested_vmx_run()

Nested_vmx_run is split into two parts: the part that handles the
VMLAUNCH/VMRESUME instruction, and the part that modifies the vcpu state
to transition from VMX root mode to VMX non-root mode. The latter will
be used when restoring the checkpointed state of a vCPU that was in VMX
operation when a snapshot was taken.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c