KVM: nSVM: extract preparation of VMCB for nested run
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 May 2020 14:56:43 +0000 (10:56 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:25:58 +0000 (04:25 -0400)
commitf241d711b2d17f79ae5fad78c5644c674fce42ba
tree4d9ac1724a38a109c9599eaf453f4c61b5fc1f83
parent3e06f0163f7f75364290bf338f4e279f6e3e404f
KVM: nSVM: extract preparation of VMCB for nested run

Split out filling svm->vmcb.save and svm->vmcb.control before VMRUN.
Only the latter will be useful when restoring nested SVM state.

This patch introduces no semantic change, so the MMU setup is still
done in nested_prepare_vmcb_save.  The next patch will clean up things.

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