]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildDeviceAddresDriveProps: Prepare for 'drive' address for usb-bot disks
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Jun 2025 07:46:38 +0000 (09:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Jun 2025 14:29:12 +0000 (16:29 +0200)
commitd325e96546f7bc57435ccff4ef990297304fce9f
tree39ad44934cf89ef6971d0ee55e56736b43a8bb09
parentf08af07f83a3f21fb88c1cacafe1cd2ffc27c22d
qemuBuildDeviceAddresDriveProps: Prepare for 'drive' address for usb-bot disks

While the 'usb-storage' based disks use the USB address directly, with
'usb-bot' the USB address is on the "controller" part of the device and
the 'scsi-hd/cd' device will use a 'drive' address from qemu's PoV.

Since we do not want to expose the 'usb-bot' as explicit controller
to preserve compatibility with existing configs we plan to upgrade
implement the formatter for 'drive' address when the "diskbus" property
is VIR_DOMAIN_DISK_BUS_USB.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_command.c