]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Store MSRPM pointer as "void *" instead of "u32 *"
authorSean Christopherson <seanjc@google.com>
Tue, 10 Jun 2025 22:57:31 +0000 (15:57 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:07:34 +0000 (13:07 -0700)
commit7fe0578041188d63207f17335e8c0d10e19c7515
tree01a56a2cdc61e1c7080c6a4c8154c9179ab0e39d
parent5c9c084763637460acaeb3e22508c692a70b6905
KVM: SVM: Store MSRPM pointer as "void *" instead of "u32 *"

Store KVM's MSRPM pointers as "void *" instead of "u32 *" to guard against
directly accessing the bitmaps outside of code that is explicitly written
to access the bitmaps with a specific type.

Opportunistically use svm_vcpu_free_msrpm() in svm_vcpu_free() instead of
open coding an equivalent.

Link: https://lore.kernel.org/r/20250610225737.156318-27-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h