]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4cc505b5ab6cecb700f7fc5b84c0d3238168d0e
tree6aa7aed4f3b9a201245170a2b3772f7e2951f7c0
parentc1b3c506154499ddf2ae4ecc337ec0ce9864cee6
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