KVM: nSVM: do not mark all VMCB01 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:32 +0000 (04:42 -0400)
commit7ca62d1322503bfd8e7beaf315441a6a2714d6a0
tree46860ecb11d8f03672df344795a88fc58861e3d5
parent7c3ecfcd31936e85aa6eb90156d07308b899a76f
KVM: nSVM: do not mark all VMCB01 fields dirty on nested vmexit

Since L1 and L2 now use different VMCBs, most of the fields remain
the same from one L1 run to the next.  svm_set_cr0 and other functions
called by nested_svm_vmexit already take care of clearing the
corresponding clean bits; only the TSC offset is special.

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