aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-03-02 15:56:10 -0800
committerPaolo Bonzini <[email protected]>2020-03-16 17:57:59 +0100
commit1893c9415ae8cad20da863c41bdf308e56a2dd67 (patch)
tree49da1aa11625955a64c76903523d4d16eed1cfb9 /tools/perf/scripts/python/check-perf-trace.py
parent3dc4a9cf05e53c358816f733e383ec42c86f3d4c (diff)
KVM: x86: Check for CPUID 0xD.N support before validating array size
Now that sub-leaf 1 is handled separately, verify the next sub-leaf is needed before rejecting KVM_GET_SUPPORTED_CPUID due to an insufficiently sized userspace array. Note, although this is technically a bug, it's not visible to userspace as KVM_GET_SUPPORTED_CPUID is guaranteed to fail on KVM_CPUID_SIGNATURE, which is hardcoded to be added after leaf 0xD. The real motivation for the change is to tightly couple the nent/maxnent and do_host_cpuid() sequences in preparation for future cleanup. 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/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions