libvirt/tests/libxlxml2domconfigdata
Jim Fehlig f81ee7b549 tests: Fix libxlxml2domconfigtest
Downstream CI recently encountered failures of libxlxml2domconfigtest when
building libvirt packages against Xen 4.17 rc3 packages. The test fails on
vnuma_hvm config, where suddently the actual json produced by
libxl_domain_config_to_json() contains a 'pnode' entry in the 'vnuma_nodes'
list, which is absent in the expected json. It appears the test has thus far
passed by luck. E.g. I was able to make the test pass in the failing
environment by changing the meson buildtype from debugoptimized to debug.

When a VM config contains vnuma settings, libxlMakeVnumaList() checks if the
number of requested vnuma nodes exceeds the number of physical nodes. The
number of physical nodes is retrieved with libxl_get_physinfo(), which can
return wildly different results in the context of unit tests. This change
mocks libxl_get_physinfo() to return consistent results. All fields of the
libxl_physinfo struct are set to 0 except nr_nodes, which is set to 6 to
ensure the vnuma_hvm configuration is properly tested.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2022-11-11 08:10:34 -07:00
..
basic-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-hvm.xml
basic-pv.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-pv.xml
basic-pvh.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-pvh.xml
cpu-shares-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
cpu-shares-hvm.xml
fullvirt-acpi-slic.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-acpi-slic.xml
fullvirt-cpuid-legacy-nest.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-cpuid-legacy-nest.xml
fullvirt-cpuid.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-cpuid.xml
max-eventchannels-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
max-eventchannels-hvm.xml
max-gntframes-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
max-gntframes-hvm.xml
moredevs-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
moredevs-hvm.xml Xen: Add writeFiltering option for PCI devices 2020-09-01 14:29:17 -06:00
multiple-ip.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
multiple-ip.xml
variable-clock-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
variable-clock-hvm.xml
vnuma-hvm-legacy-nest.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
vnuma-hvm-legacy-nest.xml
vnuma-hvm.json tests: Fix libxlxml2domconfigtest 2022-11-11 08:10:34 -07:00
vnuma-hvm.xml