aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-03-10 16:46:01 -0800
committerSean Christopherson <seanjc@google.com>2023-04-06 14:57:23 -0700
commit9eb6ba31db27253a11441368d2801c1eedc48b4f (patch)
tree03da53f2b2ee99898e98fbc69a479255ff76cf23 /tools/perf/scripts/python/export-to-postgresql.py
parentKVM: x86: Add macros to track first...last VMX feature MSRs (diff)
downloadlinux-rng-9eb6ba31db27253a11441368d2801c1eedc48b4f.tar.xz
linux-rng-9eb6ba31db27253a11441368d2801c1eedc48b4f.zip
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 <xiaoyao.li@intel.com> Link: https://lore.kernel.org/r/20230311004618.920745-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions