kvm: nVMX: Refactor handle_vmon()
authorJim Mattson <jmattson@google.com>
Wed, 30 Nov 2016 20:03:43 +0000 (12:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Feb 2017 13:54:37 +0000 (14:54 +0100)
commite29acc55bfc3afcfdf9ea3468f1217d08f0b2d2b
treec42c95baf81361429edc47a0d4909190672db073
parentcf8b84f48a5936f558a7a415f1d2f42161bf73eb
kvm: nVMX: Refactor handle_vmon()

Handle_vmon is split into two parts: the part that handles the VMXON
instruction, and the part that modifies the vcpu state to transition
from legacy mode to VMX operation. 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