]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: SVM: Introduce svm_recalc_lbr_msr_intercepts()
authorYosry Ahmed <yosry.ahmed@linux.dev>
Thu, 20 Nov 2025 23:39:32 +0000 (23:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:25:02 +0000 (06:25 +0900)
commitd8a64e55ceb26afe4240723b549a92644b2522df
tree868b74d18028cb3f9d1b0ad821fc17c8e818b286
parent592db83615a9f0164472ec789c2ed34ad35f732f
KVM: SVM: Introduce svm_recalc_lbr_msr_intercepts()

Introduce a helper updating the intercepts for LBR MSRs, similar to the
one introduced upstream by commit 160f143cc131 ("KVM: SVM: Manually
recalc all MSR intercepts on userspace MSR filter change"). The main
difference is that this version uses set_msr_interception(), which has
inverted polarity compared to svm_set_intercept_for_msr().

This is intended to simplify incoming backports. No functional changes
intended.

Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/svm/svm.c