diff options
author | Dapeng Mi <dapeng1.mi@linux.intel.com> | 2024-04-30 03:52:39 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-06-04 00:25:22 +0300 |
commit | 75430c412a3139c29404459ab1216a07d1280428 (patch) | |
tree | e9b3e6ada8c163834daab35b51e4a75a4b9a444b /scripts/generate_rust_analyzer.py | |
parent | 0e102ce3d4133194a26060fe987315133736c37b (diff) | |
download | linux-75430c412a3139c29404459ab1216a07d1280428.tar.xz |
KVM: x86/pmu: Manipulate FIXED_CTR_CTRL MSR with macros
Magic numbers are used to manipulate the bit fields of
FIXED_CTR_CTRL MSR. This makes reading code become difficult, so use
pre-defined macros to replace these magic numbers.
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240430005239.13527-3-dapeng1.mi@linux.intel.com
[sean: drop unnecessary curly braces]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions