aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-03-02 15:56:56 -0800
committerPaolo Bonzini <[email protected]>2020-03-16 17:58:35 +0100
commit7c7f9548108926dbf6776b1cfe748f7c617cfd36 (patch)
treeed3301ab926340c9a83b7871cdc3fdff5edfa4d4 /tools/perf/scripts/python/mem-phys-addr.py
parentdd69cc2542f728179d5a0ae1c972813f88ab14aa (diff)
KVM: x86: Do kvm_cpuid_array capacity checks in terminal functions
Perform the capacity checks on the userspace provided kvm_cpuid_array in the lower __do_cpuid_func() and __do_cpuid_func_emulated(). Pre-checking the array in do_cpuid_func() no longer adds value now that __do_cpuid_func() has been trimmed down to size, i.e. doesn't invoke a big pile of retpolined functions before doing anything useful. Note, __do_cpuid_func() already checks the array capacity via do_host_cpuid(), "moving" the check to __do_cpuid_func() simply means removing a WARN_ON(). Suggested-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/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions