]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Replace usb-storage with usb-bot
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sat, 8 Mar 2025 05:57:41 +0000 (14:57 +0900)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Jun 2025 14:29:13 +0000 (16:29 +0200)
commit1ba6892d752494616a68a918de0f08e9df7addfe
tree5723588ad33a305bff8d2ed60a6184d6898f4656
parent25c4a3643bedbc70a5fee83beab54dd47df41de1
qemu: Replace usb-storage with usb-bot

usb-storage is a compound device that automatically creates a USB mass
storage device and a SCSI device as its backend. Unfortunately it lacks
some configuration options that are usually present with a SCSI device,
and cannot represent CD-ROM in particular.

Replace usb-storage with usb-bot, which can be combined with a manually
created SCSI device. libvirt will configure the SCSI device in a way
identical with how QEMU does for usb-storage except that now it respects
a configuration option to represent CD-ROM.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/368
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_alias.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_hotplug.c
src/qemu/qemu_validate.c
tests/qemuhotplugtest.c
tests/qemuxmlconfdata/disk-cdrom-usb-empty.x86_64-latest.abi-update.args
tests/qemuxmlconfdata/disk-usb-device.x86_64-latest.abi-update.args