kvm: nVMX: Refactor handle_vmptrld()
authorJim Mattson <jmattson@google.com>
Wed, 30 Nov 2016 20:03:44 +0000 (12:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Feb 2017 13:54:37 +0000 (14:54 +0100)
commita8bc284eb70f58a4fd0f4a70d816cca28ca01973
treef1b4b48c744898afd890212046c833e7c116746f
parente29acc55bfc3afcfdf9ea3468f1217d08f0b2d2b
kvm: nVMX: Refactor handle_vmptrld()

Handle_vmptrld is split into two parts: the part that handles the
VMPTRLD instruction, and the part that establishes the current VMCS
pointer.  The latter will be used when restoring the checkpointed state
of a vCPU that had a valid VMCS pointer 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