]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: increase usbdevice list only when finding such an input device
authorCédric Bosdonnat <cbosdonnat@suse.com>
Fri, 23 Sep 2016 12:11:50 +0000 (14:11 +0200)
committerJim Fehlig <jfehlig@suse.com>
Fri, 23 Sep 2016 21:12:41 +0000 (15:12 -0600)
commitf4f285d80975c71f4a954134aa3424ec5e37a298
treec2280df2ba0225104dd7897c292d81acab2d2e81
parentb55c064f3b2caf0f735facacea20f0710a1b63b3
libxl: increase usbdevice list only when finding such an input device

If passing an empty usbdevice_list to libxl, qemu will always get an
-usb parameter for HVM guests with only non-USB input devices. This
causes qemu to crash when passing pvusb device on HVM guests.

The solution is to allocate the list only when an item to put in it
is found.
src/libxl/libxl_conf.c