aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-03-02 15:56:10 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 17:57:59 +0100
commit1893c9415ae8cad20da863c41bdf308e56a2dd67 (patch)
tree49da1aa11625955a64c76903523d4d16eed1cfb9 /tools/perf/scripts/python
parentKVM: x86: Move CPUID 0xD.1 handling out of the index>0 loop (diff)
downloadlinux-1893c9415ae8cad20da863c41bdf308e56a2dd67.tar.gz
linux-1893c9415ae8cad20da863c41bdf308e56a2dd67.zip
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 <vkuznets@redhat.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions