]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Move MSR_TYPE_{R,W,RW} values from VMX to x86, as enums
authorSean Christopherson <seanjc@google.com>
Fri, 2 Aug 2024 18:19:27 +0000 (11:19 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 22 Aug 2024 19:06:29 +0000 (12:06 -0700)
commitb58b808cbe93e8abe936b285ae534c9927789242
treeb1cc6204c4892cfdf8a36a4a6c3338c44c570b9b
parent74a0e79df68a8042fb84fd7207e57b70722cf825
KVM: x86: Move MSR_TYPE_{R,W,RW} values from VMX to x86, as enums

Move VMX's MSR_TYPE_{R,W,RW} #defines to x86.h, as enums, so that they can
be used by common x86 code, e.g. instead of doing "bool write".

Opportunistically tweak the definitions to make it more obvious that the
values are bitmasks, not arbitrary ascending values.

No functional change intended.

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