diff options
| author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-03-02 15:56:10 -0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 17:57:59 +0100 |
| commit | 1893c9415ae8cad20da863c41bdf308e56a2dd67 (patch) | |
| tree | 49da1aa11625955a64c76903523d4d16eed1cfb9 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | KVM: x86: Move CPUID 0xD.1 handling out of the index>0 loop (diff) | |
| download | linux-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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
