OSDN Git Service

KVM: nSVM: synchronize VMCB controls updated by the processor on every vmexit
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 May 2020 07:50:14 +0000 (03:50 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:26:00 +0000 (04:26 -0400)
commit2d8a42be0e2b15a4e0b20349f27bb8288db5ebe6
tree1dd320fe1f9582f163333ca8527a9541783828d3
parentd8e4e58f4bd4bb55d2640a841c3606333930f0e1
KVM: nSVM: synchronize VMCB controls updated by the processor on every vmexit

The control state changes on every L2->L0 vmexit, and we will have to
serialize it in the nested state.  So keep it up to date in svm->nested.ctl
and just copy them back to the nested VMCB in nested_svm_vmexit.

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