aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-03-02 15:56:23 -0800
committerPaolo Bonzini <[email protected]>2020-03-16 17:58:09 +0100
commitcfc481810c903a5f74e5c7bf50ca8e28318dbc44 (patch)
tree2f618589dd4f45024f5211dd0e9a627c24b354b7 /tools/perf/scripts/python/futex-contention.py
parent2ef7619d43731b6eaa7cc2e03d000e4bbc1bf612 (diff)
KVM: x86: Calculate the supported xcr0 mask at load time
Add a new global variable, supported_xcr0, to track which xcr0 bits can be exposed to the guest instead of calculating the mask on every call. The supported bits are constant for a given instance of KVM. This paves the way toward eliminating the ->mpx_supported() call in kvm_mpx_supported(), e.g. eliminates multiple retpolines in VMX's nested VM-Enter path, and eventually toward eliminating ->mpx_supported() altogether. No functional change intended. Reviewed-by: Xiaoyao Li <[email protected]> Reviewed-by: Vitaly Kuznetsov <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions