]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cputest: Add "diff" command to cpu-cpuid.py
authorJiri Denemark <jdenemar@redhat.com>
Thu, 16 Mar 2017 11:25:30 +0000 (12:25 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 27 Mar 2017 14:29:27 +0000 (16:29 +0200)
commit2aeef0f6bedbd551ecd83e16eeeff2121c22bf9c
tree0b2c9a298158fcde6de5b589edf9d3747aef155b
parent74f0b0c552f854292f971e3a61d5ef06c19fd937
cputest: Add "diff" command to cpu-cpuid.py

The new command can be used to generate test data for virCPUUpdateLive.

When "cpu-cpuid.py diff x86-cpuid-Something.json" is run, it reads raw
CPUID data stored in x86-cpuid-Something.xml and CPUID data from QEMU
stored in x86-cpuid-Something.json to produce two more CPUID files:
x86-cpuid-Something-enabled.xml and x86-cpuid-Something-disabled.xml.

- x86-cpuid-Something-enabled.xml will contain CPUID bits present in
    x86-cpuid-Something.json (i.e., enabled by QEMU for the "host" CPU)

- x86-cpuid-Something-disabled.xml will contain all CPUID bits from
    x86-cpuid-Something.xml which are not present in
    x86-cpuid-Something.json (i.e., CPUID bits which the host CPU
    supports, but QEMU does not enable them for the "host" CPU)

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/cputestdata/cpu-cpuid.py
tests/cputestdata/cpu-parse.sh