]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Hoist x86.c's global msr_* variables up above kvm_do_msr_access()
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 18:19:33 +0000 (11:19 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 22 Aug 2024 19:07:37 +0000 (12:07 -0700)
commit3adef9034596a8ba6415e6e460209cd9fc524e81
tree2b9cf08d59969e86abdb09da5c7e8a1ab4ef33eb
parent1cec2034980ad03ebf8ce0f187a8f3101c33e611
KVM: x86: Hoist x86.c's global msr_* variables up above kvm_do_msr_access()

Move the definitions of the various MSR arrays above kvm_do_msr_access()
so that kvm_do_msr_access() can query the arrays when handling failures,
e.g. to squash errors if userspace tries to read an MSR that isn't fully
supported, but that KVM advertised as being an MSR-to-save.

No functional change intended.

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