aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-06-14 20:06:44 +0000
committerSean Christopherson <[email protected]>2022-07-13 18:14:15 -0700
commitd838b313aadcf89d9b352ced1cd849d313971864 (patch)
tree8b0985ccb850d44cbddf637dd368c9eb66b92c59 /tools/perf/scripts/python
parent7fbc6038acbaa4c0c0b374aac635038881143e84 (diff)
KVM: selftests: Don't use a static local in vcpu_get_supported_hv_cpuid()
Don't use a static variable for the Hyper-V supported CPUID array, the helper unconditionally reallocates the array on every invocation (and all callers free the array immediately after use). The array is intentionally recreated and refilled because the set of supported CPUID features is dependent on vCPU state, e.g. whether or not eVMCS has been enabled. Signed-off-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions