mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
tests: Adjust libxlxml2domconfigtest to work with Xen < 4.8
Commit fcdc387410
used a libxl API which
is only available since Xen 4.8.
Due to lack of a specific guard for this API change, reuse another
guard from libxl.h.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
18d0f2f956
commit
f07ae0fcbd
@ -105,7 +105,13 @@ testCompareXMLToDomConfig(const char *xmlfile,
|
||||
*/
|
||||
# ifndef LIBXL_HAVE_BUILDINFO_APIC
|
||||
if (expectconfig.c_info.type == LIBXL_DOMAIN_TYPE_HVM) {
|
||||
# ifdef LIBXL_HAVE_MEMKB_64BITS
|
||||
/*
|
||||
* This part of the libxl API was changed without a guard in Xen 4.8.
|
||||
* Reuse another Xen 4.8 specific conditional.
|
||||
*/
|
||||
libxl_defbool_unset(&expectconfig.b_info.acpi);
|
||||
# endif
|
||||
libxl_defbool_set(&expectconfig.b_info.u.hvm.apic, true);
|
||||
libxl_defbool_set(&expectconfig.b_info.u.hvm.acpi, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user