libvirt/tests/libxlxml2domconfigdata
Rayhan Faizel cb2a6ef8b5 libxl_conf: Fix config generation for multiple serial devices
Currently, an array of libxl_string_list (char **) or in other words,
a triple char pointer is initialized. This is dereferenced to a char ** type
and stored in serial_list, which is NULL at this point. There is an attempt to
reference an element of this serial_list when making a call to
libxlMakeChrdevStr which causes a segmentation fault.

To fix this, we simply allocate an array of char * instead of
libxl_string_list.

This patch also adds testcases to extend coverage over both single serial and
multiple serial cases.

Signed-off-by: Rayhan Faizel <rayhan.faizel@gmail.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2024-10-02 16:06:50 +02:00
..
basic-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-hvm.xml Misc XML schema fixes for libxl 2017-11-30 10:20:06 +00:00
basic-pv.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-pv.xml libxl: Add a test suite for libxl_domain_config generator 2017-08-04 10:17:55 -06:00
basic-pvh.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
basic-pvh.xml tests: add basic Xen PVH test 2018-11-26 16:33:25 -07:00
cpu-shares-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
cpu-shares-hvm.xml libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
efi-hvm.json libxl: Support specifying a custom firmware path 2023-03-10 11:01:42 -07:00
efi-hvm.xml libxl: Support specifying a custom firmware path 2023-03-10 11:01:42 -07:00
fullvirt-acpi-slic.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-acpi-slic.xml tests: libxl: ACPI slic table test 2019-10-10 21:02:03 -06:00
fullvirt-cpuid-legacy-nest.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-cpuid-legacy-nest.xml tests: reintroduce tests for libxl's legacy nested setting 2018-10-01 10:33:19 +02:00
fullvirt-cpuid.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
fullvirt-cpuid.xml tests: check CPU features handling in libxl driver 2018-04-17 21:15:27 -06:00
max-eventchannels-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
max-eventchannels-hvm.xml libxl: Add support for max_event_channels 2020-04-09 15:45:05 -06:00
max-gntframes-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
max-gntframes-hvm.xml libxl: Add support for max_grant_frames 2019-03-13 12:06:52 -06:00
moredevs-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
moredevs-hvm.xml xen: explicitly set hostdev driver.name at runtime, not in postparse 2024-01-07 23:59:00 -05:00
multiple-ip.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
multiple-ip.xml tests: add test for multiple IPs for libxl and xenconfig driver 2017-12-08 14:04:57 -07:00
multiple-serial.json libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
multiple-serial.xml libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
single-serial.json libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
single-serial.xml libxl_conf: Fix config generation for multiple serial devices 2024-10-02 16:06:50 +02:00
variable-clock-hvm.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
variable-clock-hvm.xml libxl: add support for specifying clock offset and adjustment 2018-02-21 12:28:49 -07:00
vnuma-hvm-legacy-nest.json tests: Fix libxlxml2domconfigtest with latest xen 2022-10-30 12:34:02 -04:00
vnuma-hvm-legacy-nest.xml tests: reintroduce tests for libxl's legacy nested setting 2018-10-01 10:33:19 +02:00
vnuma-hvm.json tests: Fix libxlxml2domconfigtest 2022-11-11 08:10:34 -07:00
vnuma-hvm.xml Misc XML schema fixes for libxl 2017-11-30 10:20:06 +00:00