diff options
author | Sean Christopherson <[email protected]> | 2023-03-10 16:46:01 -0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-04-06 14:57:23 -0700 |
commit | 9eb6ba31db27253a11441368d2801c1eedc48b4f (patch) | |
tree | 03da53f2b2ee99898e98fbc69a479255ff76cf23 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5757f5b9562244e4b63f65576c16ca9eb21f81d2 (diff) |
KVM: x86: Generate set of VMX feature MSRs using first/last definitions
Add VMX MSRs to the runtime list of feature MSRs by iterating over the
range of emulated MSRs instead of manually defining each MSR in the "all"
list. Using the range definition reduces the cost of emulating a new VMX
MSR, e.g. prevents forgetting to add an MSR to the list.
Extracting the VMX MSRs from the "all" list, which is a compile-time
constant, also shrinks the list to the point where the compiler can
heavily optimize code that iterates over the list.
No functional change intended.
Reviewed-by: Xiaoyao Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions