]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Set disk format for empty cdrom device
authorStefan Bader <stefan.bader@canonical.com>
Thu, 27 Mar 2014 16:55:03 +0000 (17:55 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Apr 2014 15:27:46 +0000 (17:27 +0200)
commit7a1452f5334f98680187ae6d11fe2a49c1b38548
treea16ad11f9ff97971cf3819b16d0198b63c09a502
parent0e0c1a7489a6a04c5060d0fe7fad6337ed98ec01
libxl: Set disk format for empty cdrom device

The XML config for a CDROM device can be without a source path,
indicating that there is no media present. Without this change
the libxl driver fails to start a guest in that case because
the libxl library checks for the LIBXL_DISK_FORMAT_EMPTY format
type and tries to stat the NULL pointer that gets passed on.

> libxl: error: libxl_device.c:265:libxl__device_disk_set_backend:
> Disk vdev=hdc failed to stat: (null): Bad address

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
src/libxl/libxl_conf.c