KVM: SVM: Return -EINVAL instead of MSR_INVALID to signal out-of-range MSR
authorSean Christopherson <seanjc@google.com>
Tue, 10 Jun 2025 22:57:33 +0000 (15:57 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:07:35 +0000 (13:07 -0700)
commit5904ba5172464cdf688567a06346351ab3a61fd3
tree386ac75eddc7dded73ebf40db74e74619e24ef72
parent52f82177429e0631afebb676e57d05e621153b0d
KVM: SVM: Return -EINVAL instead of MSR_INVALID to signal out-of-range MSR

Return -EINVAL instead of MSR_INVALID from svm_msrpm_bit_nr() to indicate
that the MSR isn't covered by one of the (currently) three MSRPM ranges,
and delete the MSR_INVALID macro now that all users are gone.

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