]> xenbits.xensource.com Git - libvirt.git/commit
qemuBuildControllerDevStr: Split out formatting of SCSI controller
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 Oct 2021 20:27:12 +0000 (22:27 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:05 +0000 (10:26 +0200)
commit7ac265bcd49357bb2c3a0122702bf9e60e639c3a
tree80b838627ebecbb823df61c6a25c15d6a64c4eda
parent49f199f3fdd50a35333148c75bf425dc6e76d930
qemuBuildControllerDevStr: Split out formatting of SCSI controller

Move the code into a new function called qemuBuildControllerSCSIDevStr
so that the code is self contained and the original function easier to
follow.

This patch also moves the formatting of the properties relevant only for
the 'virtio-scsi' controller to the specific case so it's more clear
where they belong to.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c