diff options
author | Jim Mattson <[email protected]> | 2019-09-25 17:04:17 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2019-09-26 12:31:31 +0200 |
commit | 43561123ab3759eb6ff47693aec1a307af0aef83 (patch) | |
tree | aa5a1f342f307d53b50bbc77032f0d849f392d9b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3ca94192278ca8de169d78c085396c424be123b3 (diff) |
kvm: x86: Improve emulation of CPUID leaves 0BH and 1FH
For these CPUID leaves, the EDX output is not dependent on the ECX
input (i.e. the SIGNIFCANT_INDEX flag doesn't apply to
EDX). Furthermore, the low byte of the ECX output is always identical
to the low byte of the ECX input. KVM does not produce the correct ECX
and EDX outputs for any undefined subleaves beyond the first.
Special-case these CPUID leaves in kvm_cpuid, so that the ECX and EDX
outputs are properly generated for all undefined subleaves.
Fixes: 0771671749b59a ("KVM: Enhance guest cpuid management")
Fixes: a87f2d3a6eadab ("KVM: x86: Add Intel CPUID.1F cpuid emulation support")
Signed-off-by: Jim Mattson <[email protected]>
Reviewed-by: Marc Orr <[email protected]>
Reviewed-by: Peter Shier <[email protected]>
Reviewed-by: Jacob Xu <[email protected]>
Cc: Sean Christopherson <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions