]> 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)
commitf1604f88b31b0b12898974a1a9f55ca1449a64d6
tree46860ecb11d8f03672df344795a88fc58861e3d5
parent6fa84eefffa82c9d697abf7b22a487f65a14bbb6
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