]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/pmu: Change ambiguous _mask suffix to _rsvd in kvm_pmu
authorDapeng Mi <dapeng1.mi@linux.intel.com>
Tue, 30 Apr 2024 00:52:38 +0000 (08:52 +0800)
committerSean Christopherson <seanjc@google.com>
Mon, 3 Jun 2024 21:23:14 +0000 (14:23 -0700)
commit0e102ce3d4133194a26060fe987315133736c37b
tree34444cf113919e8e643a088c67a49e979add9013
parent0c468a6a020cc7d848af053ef13254005e289dd9
KVM: x86/pmu: Change ambiguous _mask suffix to _rsvd in kvm_pmu

Several '_mask' suffixed variables such as, global_ctrl_mask, are
defined in kvm_pmu structure. However the _mask suffix is ambiguous and
misleading since it's not a real mask with positive logic. On the contrary
it represents the reserved bits of corresponding MSRs and these bits
should not be accessed.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240430005239.13527-2-dapeng1.mi@linux.intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/svm/pmu.c
arch/x86/kvm/vmx/pmu_intel.c