KVM: nSVM: do not mark all VMCB02 fields dirty on nested vmexit
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Nov 2020 11:38:19 +0000 (06:38 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:33 +0000 (04:42 -0400)
commit4bb170a5430b9ea9589ded486d8fbb0df99de377
tree1da9bfee26a95411ab03742ea6dd94520c3a68c3
parent7ca62d1322503bfd8e7beaf315441a6a2714d6a0
KVM: nSVM: do not mark all VMCB02 fields dirty on nested vmexit

Since L1 and L2 now use different VMCBs, most of the fields remain the
same in VMCB02 from one L2 run to the next.  Since KVM itself is not
looking at VMCB12's clean field, for now not much can be optimized.
However, in the future we could avoid more copies if the VMCB12's SEG
and DT sections are clean.

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