Jiri Denemark (14):
cpu_conf: Introduce virCPUDefFreeFeatures
cpu: Introduce virCPUExpandFeatures
cpu: Drop unused flags from cpuArchDecode
cpu: Move feature expansion out of cpuBaseline
cpu: Do not pass virConnectBaselineCPUFlags to cpuBaseline
cputest: Move instantiation of JSONDecoder in cpu-convert.py
cputest: Rename cpu-convert.py script as cpu-cpuid.py
cputest: Add cpuidIsSet helper to cpu-cpuid.py
cputest: Add cpuidLeaf helper to cpu-cpuid.py
cputest: Add "diff" command to cpu-cpuid.py
cputest: Generate data for virCPUUpdateLive
cputest: Disable TSX on broken models
cputest: Disable "cmt" feature unknown to QEMU
cputest: Add tests for virCPUUpdateLive API
src/conf/cpu_conf.c | 21 ++-
src/conf/cpu_conf.h | 3 +
src/cpu/cpu.c | 74 +++++++--
src/cpu/cpu.h | 15 +-
src/cpu/cpu_arm.c | 5 +-
src/cpu/cpu_ppc64.c | 12 +-
src/cpu/cpu_x86.c | 109 ++++++++------
src/libvirt_private.syms | 2 +
tests/cputest.c | 160 +++++++++++++++++++-
tests/cputestdata/{cpu-convert.py => cpu-cpuid.py} | 165 +++++++++++++++++----
tests/cputestdata/cpu-parse.sh | 3 +-
tests/cputestdata/x86_64-baseline-3-expanded.xml | 48 +++---
tests/cputestdata/x86_64-baseline-4-expanded.xml | 68 ++++-----
tests/cputestdata/x86_64-baseline-5-expanded.xml | 70 ++++-----
.../x86_64-cpuid-A10-5800K-disabled.xml | 7 +
.../cputestdata/x86_64-cpuid-A10-5800K-enabled.xml | 8 +
.../x86_64-cpuid-Core-i5-2500-disabled.xml | 5 +
.../x86_64-cpuid-Core-i5-2500-enabled.xml | 9 ++
.../x86_64-cpuid-Core-i5-2540M-disabled.xml | 5 +
.../x86_64-cpuid-Core-i5-2540M-enabled.xml | 9 ++
.../x86_64-cpuid-Core-i5-4670T-disabled.xml | 7 +
.../x86_64-cpuid-Core-i5-4670T-enabled.xml | 8 +
tests/cputestdata/x86_64-cpuid-Core-i5-4670T.json | 4 +-
.../x86_64-cpuid-Core-i5-6600-disabled.xml | 5 +
.../x86_64-cpuid-Core-i5-6600-enabled.xml | 9 ++
.../x86_64-cpuid-Core-i7-2600-disabled.xml | 6 +
.../x86_64-cpuid-Core-i7-2600-enabled.xml | 8 +
.../x86_64-cpuid-Core-i7-3740QM-disabled.xml | 6 +
.../x86_64-cpuid-Core-i7-3740QM-enabled.xml | 8 +
.../x86_64-cpuid-Core-i7-3770-disabled.xml | 6 +
.../x86_64-cpuid-Core-i7-3770-enabled.xml | 8 +
.../x86_64-cpuid-Core-i7-4510U-disabled.xml | 5 +
.../x86_64-cpuid-Core-i7-4510U-enabled.xml | 9 ++
.../x86_64-cpuid-Core-i7-4600U-disabled.xml | 5 +
.../x86_64-cpuid-Core-i7-4600U-enabled.xml | 9 ++
.../x86_64-cpuid-Core-i7-5600U-disabled.xml | 5 +
.../x86_64-cpuid-Core-i7-5600U-enabled.xml | 9 ++
.../x86_64-cpuid-Core2-E6850-disabled.xml | 4 +
.../x86_64-cpuid-Core2-E6850-enabled.xml | 7 +
.../x86_64-cpuid-Opteron-2350-disabled.xml | 7 +
.../x86_64-cpuid-Opteron-2350-enabled.xml | 7 +
.../x86_64-cpuid-Opteron-6234-disabled.xml | 7 +
.../x86_64-cpuid-Opteron-6234-enabled.xml | 9 ++
.../x86_64-cpuid-Phenom-B95-disabled.xml | 7 +
.../x86_64-cpuid-Phenom-B95-enabled.xml | 7 +
.../x86_64-cpuid-Xeon-E3-1245-disabled.xml | 6 +
.../x86_64-cpuid-Xeon-E3-1245-enabled.xml | 9 ++
.../x86_64-cpuid-Xeon-E5-2630-disabled.xml | 7 +
.../x86_64-cpuid-Xeon-E5-2630-enabled.xml | 8 +
.../x86_64-cpuid-Xeon-E5-2650-disabled.xml | 8 +
.../x86_64-cpuid-Xeon-E5-2650-enabled.xml | 7 +
.../x86_64-cpuid-Xeon-E7-4820-disabled.xml | 6 +
.../x86_64-cpuid-Xeon-E7-4820-enabled.xml | 7 +
.../x86_64-cpuid-Xeon-W3520-disabled.xml | 5 +
.../x86_64-cpuid-Xeon-W3520-enabled.xml | 7 +
55 files changed, 834 insertions(+), 206 deletions(-)
rename tests/cputestdata/{cpu-convert.py => cpu-cpuid.py} (83%)
create mode 100644 tests/cputestdata/x86_64-cpuid-A10-5800K-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-A10-5800K-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-2500-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-2500-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-2540M-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-2540M-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-4670T-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-4670T-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-6600-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i5-6600-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-2600-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-2600-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-3740QM-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-3740QM-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-3770-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-3770-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-4510U-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-4510U-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-4600U-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-4600U-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-5600U-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core2-E6850-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Core2-E6850-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Opteron-2350-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Opteron-2350-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Opteron-6234-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Opteron-6234-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Phenom-B95-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Phenom-B95-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E3-1245-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E3-1245-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-W3520-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-W3520-enabled.xml
--
2.12.0