|
|
0a7476 |
From 3560b106745b8d1ed16203858b4a9434de4d79cf Mon Sep 17 00:00:00 2001
|
|
|
0a7476 |
Message-Id: <3560b106745b8d1ed16203858b4a9434de4d79cf@dist-git>
|
|
|
0a7476 |
From: John Ferlan <jferlan@redhat.com>
|
|
|
0a7476 |
Date: Tue, 29 Jan 2019 19:01:49 -0500
|
|
|
0a7476 |
Subject: [PATCH] qemu: Filter non SCSI hostdevs in
|
|
|
0a7476 |
qemuHostdevPrepareSCSIDevices
|
|
|
0a7476 |
MIME-Version: 1.0
|
|
|
0a7476 |
Content-Type: text/plain; charset=UTF-8
|
|
|
0a7476 |
Content-Transfer-Encoding: 8bit
|
|
|
0a7476 |
|
|
|
0a7476 |
https://bugzilla.redhat.com/show_bug.cgi?id=1665474 (RHEL7)
|
|
|
0a7476 |
https://bugzilla.redhat.com/show_bug.cgi?id=1665244 (RHEL8)
|
|
|
0a7476 |
|
|
|
0a7476 |
When commit 1d94b3e7 added code to walk the [n]hostdevs list looking
|
|
|
0a7476 |
to add shared hostdevs, it should've filtered any hostdevs that were
|
|
|
0a7476 |
not SCSI hostdev's.
|
|
|
0a7476 |
|
|
|
0a7476 |
Signed-off-by: John Ferlan <jferlan@redhat.com>
|
|
|
0a7476 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
0a7476 |
(cherry picked from commit f30ac207ad96a567ade0d8a49023ade9233b2b72)
|
|
|
0a7476 |
Message-Id: <20190130000151.4479-2-jferlan@redhat.com>
|
|
|
0a7476 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
0a7476 |
---
|
|
|
0a7476 |
src/qemu/qemu_hostdev.c | 3 +++
|
|
|
0a7476 |
1 file changed, 3 insertions(+)
|
|
|
0a7476 |
|
|
|
0a7476 |
diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c
|
|
|
0a7476 |
index 1e040f98b7..8b1ad6b447 100644
|
|
|
0a7476 |
--- a/src/qemu/qemu_hostdev.c
|
|
|
0a7476 |
+++ b/src/qemu/qemu_hostdev.c
|
|
|
0a7476 |
@@ -278,6 +278,9 @@ qemuHostdevPrepareSCSIDevices(virQEMUDriverPtr driver,
|
|
|
0a7476 |
for (i = 0; i < nhostdevs; i++) {
|
|
|
0a7476 |
virDomainDeviceDef dev;
|
|
|
0a7476 |
|
|
|
0a7476 |
+ if (!virHostdevIsSCSIDevice(hostdevs[i]))
|
|
|
0a7476 |
+ continue;
|
|
|
0a7476 |
+
|
|
|
0a7476 |
dev.type = VIR_DOMAIN_DEVICE_HOSTDEV;
|
|
|
0a7476 |
dev.data.hostdev = hostdevs[i];
|
|
|
0a7476 |
|
|
|
0a7476 |
--
|
|
|
0a7476 |
2.21.0
|
|
|
0a7476 |
|