This is a backport of LBR virtualization fixes that recently landed in Linus's tree to 6.12.y.
Patch 1 is not a backport, it's introducing a helper that exists in Linus's tree to make the following backports more straightforward to apply.
Patch 2 should already be in queue-6.12, but it's included here as the remaining patches depend on it.
Yosry Ahmed (5): KVM: SVM: Introduce svm_recalc_lbr_msr_intercepts() KVM: SVM: Mark VMCB_LBR dirty when MSR_IA32_DEBUGCTLMSR is updated KVM: nSVM: Always recalculate LBR MSR intercepts in svm_update_lbrv() KVM: nSVM: Fix and simplify LBR virtualization handling with nested KVM: SVM: Fix redundant updates of LBR MSR intercepts
arch/x86/kvm/svm/nested.c | 20 +++----- arch/x86/kvm/svm/svm.c | 96 ++++++++++++++++++++------------------- arch/x86/kvm/svm/svm.h | 1 + 3 files changed, 57 insertions(+), 60 deletions(-)