Commit 3adef903 authored by Sean Christopherson's avatar Sean Christopherson

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.comSigned-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 1cec2034
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment