KVM: nSVM: Track whether changes in L0 require MSR bitmap for L2 to be rebuilt
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 2 Feb 2022 09:50:57 +0000 (10:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:44 +0000 (13:50 -0500)
commit73c25546d47f65165ae50f225272e05629fab164
tree74178afcc376c08afb42b90c790685c64d0f7c9f
parent951cb0a3b5f2acc61ed84c752fb0bcef6806496f
KVM: nSVM: Track whether changes in L0 require MSR bitmap for L2 to be rebuilt

Similar to nVMX commit ed2a4800ae9d ("KVM: nVMX: Track whether changes in
L0 require MSR bitmap for L2 to be rebuilt"), introduce a flag to keep
track of whether MSR bitmap for L2 needs to be rebuilt due to changes in
MSR bitmap for L1 or switching to a different L2.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220202095100.129834-2-vkuznets@redhat.com>
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