mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: Filter non SCSI hostdevs in qemuHostdevPrepareSCSIDevices
When commit 1d94b3e7
added code to walk the [n]hostdevs list looking
to add shared hostdevs, it should've filtered any hostdevs that were
not SCSI hostdev's.
Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7282f455aa
commit
f30ac207ad
@ -275,6 +275,9 @@ qemuHostdevPrepareSCSIDevices(virQEMUDriverPtr driver,
|
||||
for (i = 0; i < nhostdevs; i++) {
|
||||
virDomainDeviceDef dev;
|
||||
|
||||
if (!virHostdevIsSCSIDevice(hostdevs[i]))
|
||||
continue;
|
||||
|
||||
dev.type = VIR_DOMAIN_DEVICE_HOSTDEV;
|
||||
dev.data.hostdev = hostdevs[i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user