KVM: nSVM: save all control fields in svm->nested
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 17:16:12 +0000 (13:16 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:26:00 +0000 (04:26 -0400)
commite670bf68f4b701506d51f007917ab633894294d0
tree6aa7aed4f3b9a201245170a2b3772f7e2951f7c0
parent7923ef4f6ec4a25a902bd827446eac860b01fd1c
KVM: nSVM: save all control fields in svm->nested

In preparation for nested SVM save/restore, store all data that matters
from the VMCB control area into svm->nested.  It will then become part
of the nested SVM state that is saved by KVM_SET_NESTED_STATE and
restored by KVM_GET_NESTED_STATE, just like the cached vmcs12 for nVMX.

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