]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Use same model when adding hostdev SCSI controller
authorJohn Ferlan <jferlan@redhat.com>
Mon, 4 Dec 2017 19:33:30 +0000 (14:33 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 4 Jan 2018 15:30:43 +0000 (10:30 -0500)
commit07beea6ca2fea359fa3d113c2b32d6745e273b23
treead56227fdba29402a3abedd600111fcad16ec79d
parentfae22fced4c33a97f3ed12bf0127540ab8647474
qemu: Use same model when adding hostdev SCSI controller

When qemuDomainFindOrCreateSCSIDiskController adds a controller,
let's use the same model as a currently found controller under the
assumption that the reason to add the controller in hotplug is
because virDomainHostdevAssignAddress determined that there were
too many devices on the existing controller, but only assigned a
new controller index and did not add a new controller and we
desire to use the same controller model as any existing controller
and not take a chance that qemuDomainSetSCSIControllerModel would
use a default that may be incompatible.
src/qemu/qemu_hotplug.c