]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cputest: Fix cpu-cpuid.py diff command
authorJiri Denemark <jdenemar@redhat.com>
Fri, 5 Jan 2018 13:35:42 +0000 (14:35 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 10 Jan 2018 10:07:23 +0000 (11:07 +0100)
commit5ea187bc83d61367dca8a3afe8a8c803d2932c77
tree059d25afd2914699815c5997f43f4601389ec5a2
parent335ea94e311fdd3fd590677e11ff2248fd116f2b
cputest: Fix cpu-cpuid.py diff command

The cpuidMap in cpu-cpuid.py was created for converting old data files
(with QEMU's feature-words bits) to the new model-expansion based data.
When I added tests for CPU live update based on disabled/enabled feature
lists I shamelessly used the existing cpuidMap for generating the
*-{enabled,disabled}.xml data files. Thus any new CPUID bits which are
not present in the original cpuidMap would be ignored. The correct thing
to do is to use cpu_map.xml.

All data files were fixed by running the following command:

    ./cpu-cpuid.py diff *.json

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
40 files changed:
tests/cputestdata/cpu-cpuid.py
tests/cputestdata/x86_64-cpuid-A10-5800K-disabled.xml
tests/cputestdata/x86_64-cpuid-A10-5800K-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i5-2500-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i5-2540M-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i5-4670T-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i5-6600-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-2600-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-2600-xsaveopt-disabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-2600-xsaveopt-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-3740QM-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-3770-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-4510U-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-4600U-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-disabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-arat-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-5600U-enabled.xml
tests/cputestdata/x86_64-cpuid-Core-i7-7700-enabled.xml
tests/cputestdata/x86_64-cpuid-Core2-E6850-enabled.xml
tests/cputestdata/x86_64-cpuid-EPYC-7601-32-Core-disabled.xml
tests/cputestdata/x86_64-cpuid-EPYC-7601-32-Core-enabled.xml
tests/cputestdata/x86_64-cpuid-Opteron-2350-disabled.xml
tests/cputestdata/x86_64-cpuid-Opteron-2350-enabled.xml
tests/cputestdata/x86_64-cpuid-Opteron-6234-disabled.xml
tests/cputestdata/x86_64-cpuid-Opteron-6234-enabled.xml
tests/cputestdata/x86_64-cpuid-Phenom-B95-disabled.xml
tests/cputestdata/x86_64-cpuid-Phenom-B95-enabled.xml
tests/cputestdata/x86_64-cpuid-Ryzen-7-1800X-Eight-Core-disabled.xml
tests/cputestdata/x86_64-cpuid-Ryzen-7-1800X-Eight-Core-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E3-1245-v5-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v3-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v3-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-disabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E7-4830-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-E7-8890-v3-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-Gold-6148-disabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-Gold-6148-enabled.xml
tests/cputestdata/x86_64-cpuid-Xeon-W3520-enabled.xml