libvirt/tests/qemuhotplugtestdevices/qemuhotplug-cdrom-scsi.xml
minglei.liu 3078799fef qemu: support CDROM hotplug cdrom with USB/SCSI bus
QEMU supports hotplug of a cdrom device with USB or SCSI bus. Just
unblock these devices in qemuDomainAttachDeviceDiskLiveInternal() and
qemuDomainDetachPrepDisk().

Fixes: https://gitlab.com/libvirt/libvirt/-/issues/261

Signed-off-by: minglei.liu <minglei.liu@smartx.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2022-07-20 16:53:51 +02:00

7 lines
166 B
XML

<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' cache='none'/>
<source file='/dev/null'/>
<target dev='sde' bus='scsi'/>
<readonly/>
</disk>