mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
committed by
Michal Privoznik
parent
7b28561c85
commit
3078799fef
6
tests/qemuhotplugtestdevices/qemuhotplug-cdrom-scsi.xml
Normal file
6
tests/qemuhotplugtestdevices/qemuhotplug-cdrom-scsi.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<disk type='file' device='cdrom'>
|
||||
<driver name='qemu' type='raw' cache='none'/>
|
||||
<source file='/dev/null'/>
|
||||
<target dev='sde' bus='scsi'/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
6
tests/qemuhotplugtestdevices/qemuhotplug-cdrom-usb.xml
Normal file
6
tests/qemuhotplugtestdevices/qemuhotplug-cdrom-usb.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<disk type='file' device='cdrom'>
|
||||
<driver name='qemu' type='raw' cache='none'/>
|
||||
<source file='/dev/null'/>
|
||||
<target dev='sde' bus='usb'/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
Reference in New Issue
Block a user