• S
    libxl: Set disk format for empty cdrom device · 7a1452f5
    Stefan Bader 提交于
    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: NStefan Bader <stefan.bader@canonical.com>
    7a1452f5
libxl_conf.c 41.2 KB