KVM: nSVM: extract load_nested_vmcb_control
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 17:07:26 +0000 (13:07 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:25:58 +0000 (04:25 -0400)
commit3e06f0163f7f75364290bf338f4e279f6e3e404f
treebed96ea5e75228594eb47f8018b26f59e13e1b7c
parent69c9dfa24bb7bac5c9e2bd4d3f631e35b91e3733
KVM: nSVM: extract load_nested_vmcb_control

When restoring SVM nested state, the control state cache in svm->nested
will have to be filled, but the save state will not have to be moved
into svm->vmcb.  Therefore, pull the code that handles the control area
into a separate function.

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