]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37e6e608d30be937d86d3750acb4ccbe36563ccf
treecbd73f2124b4fbb40dc137a150ca8caf43443df5
parent47e220b3e2ca0e7b95cd4dec3671ef853750260d
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