libvirt/tests/qemustatusxml2xmldata
Andrea Bolognani 931144858f qemu: Figure out nodeset bitmap size correctly
The current private XML parsing code relies on the assumption
that NUMA node IDs start from 0 and are densely allocated,
neither of which is necessarily the case.

Change it so that the bitmap size is dynamically calculated by
looking at NUMA node IDs instead, which ensures all nodes will
be able to fit and thus the bitmap will be parsed successfully.

Update one of the test cases so that it would fail with the
previous approach, but passes with the new one.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1490158

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2018-04-19 17:57:54 +02:00
..
blockjob-mirror-in.xml tests: qemuxml2xml: Add synthetic test for <lockstate> in status XML 2018-03-13 13:54:11 +01:00
blockjob-mirror-out.xml
migration-in-params-in.xml qemuxml2xmltest: Add status XML tests for migration params 2018-04-17 10:46:23 +02:00
migration-in-params-out.xml qemuxml2xmltest: Add status XML tests for migration params 2018-04-17 10:46:23 +02:00
migration-out-nbd-in.xml tests: qemuxml2xml: Add status XML with outgoing migration with NBD 2018-03-13 13:54:11 +01:00
migration-out-nbd-out.xml qemu: Store API flags for async jobs in status XML 2018-04-17 10:46:23 +02:00
migration-out-params-in.xml qemuxml2xmltest: Add status XML tests for migration params 2018-04-17 10:46:23 +02:00
migration-out-params-out.xml qemuxml2xmltest: Add status XML tests for migration params 2018-04-17 10:46:23 +02:00
modern-in.xml qemu: Figure out nodeset bitmap size correctly 2018-04-19 17:57:54 +02:00
modern-out.xml tests: qemuxml2xml: Add modern example of status XML to the test 2018-03-13 13:54:11 +01:00
vcpus-multi-in.xml
vcpus-multi-out.xml