Jiri Denemark 84cc51ea74 cputest: Add tests for virCPUUpdateLive API
The test takes

  x86-cpuid-Something-guest.xml CPU (the CPU libvirt would use for
    host-model on a CPU described by x86_64-cpuid-Something.xml without
    talking to QEMU about what it supports on the host)

and updates it according to CPUID data from QEMU:

  x86_64-cpuid-Something-enabled.xml (reported as "feature-words"
    property of the CPU device)

and

  x86_64-cpuid-Something-disabled.xml (reported as "filtered-features"
    property of the CPU device).

The result is compared to

  x86_64-cpuid-Something-json.xml (the CPU libvirt would use as
    host-model based on the reply from query-cpu-model-expansion).

The comparison is a bit tricky because the *-json.xml CPU contains fewer
disabled features. Only the features which are included in the base CPU
model, but listed as disabled in *.json will be disabled in *-json.xml.
The CPU computed by virCPUUpdateLive from the test data will list all
features present in the host's CPUID data and not enabled in *.json as
disabled. The cpuTestUpdateLiveCompare function checks that the computed
and expected sets of enabled features match.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2017-03-27 16:29:27 +02:00
..
2017-03-27 13:13:29 +02:00
2017-03-27 13:13:29 +02:00
2016-12-06 13:34:00 +01:00
2016-12-06 13:34:00 +01:00
2016-06-14 08:25:25 +02:00
2016-05-20 17:16:21 +02:00
2016-05-20 17:16:21 +02:00
2017-03-27 13:13:29 +02:00
2016-05-20 17:16:21 +02:00
2016-09-14 13:18:07 +02:00
2016-08-24 17:43:29 +02:00
2017-02-10 10:25:44 +01:00