KVM: SVM: Drop "always" flag from list of possible passthrough MSRs
authorSean Christopherson <seanjc@google.com>
Tue, 10 Jun 2025 22:57:21 +0000 (15:57 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:07:27 +0000 (13:07 -0700)
commitcb53d079484c989c7fde2413e6181b704cf13f89
tree7ee3eec11850350e7be9a3bf8da5070a9f098d5f
parent3a0f09b361e1c6245c544f9ea9e14ab651979a4f
KVM: SVM: Drop "always" flag from list of possible passthrough MSRs

Drop the "always" flag from the array of possible passthrough MSRs, and
instead manually initialize the permissions for the handful of MSRs that
KVM passes through by default.  In addition to cutting down on boilerplate
copy+paste code and eliminating a misleading flag (the MSRs aren't always
passed through, e.g. thanks to MSR filters), this will allow for removing
the direct_access_msrs array entirely.

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