KVM: nSVM: refactor nested_svm_vmrun
authorLadi Prosek <lprosek@redhat.com>
Wed, 11 Oct 2017 14:54:44 +0000 (16:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Oct 2017 12:01:56 +0000 (14:01 +0200)
commitc26340651b75d649bea585eba45e32b871188e6e
tree11550fdc7e3d7a36a23832ea55cd7ca68061eb18
parent72e9cbdb43384ceacc49e2fb6b8c8fb7c5988778
KVM: nSVM: refactor nested_svm_vmrun

Analogous to 858e25c06fb0 ("kvm: nVMX: Refactor nested_vmx_run()"), this commit splits
nested_svm_vmrun into two parts. The newly introduced enter_svm_guest_mode modifies the
vcpu state to transition from L1 to L2, while the code left in nested_svm_vmrun handles
the VMRUN instruction.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c