]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30607c2f01bb81ee22ee8672e5dc6d3ed53b762c
tree46860ecb11d8f03672df344795a88fc58861e3d5
parent5d3ff8517713f555ffed8c32a2f7ae7bfb9f8c06
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