[libvirt PATCH 07/12] qemu: assume QEMU_CAPS_VIRTIO_SCSI_IOTHREAD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All the supported QEMU versions should have iothread support
on the virtio-scsi controllers if they are compiled in.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/qemu/qemu_process.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index aaf51e019a..f8ce822dda 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -5304,8 +5304,6 @@ static int
 qemuProcessStartValidateIOThreads(virDomainObj *vm,
                                   virQEMUCaps *qemuCaps)
 {
-    size_t i;
-
     if (vm->def->niothreadids > 0 &&
         !virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_IOTHREAD)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
@@ -5313,20 +5311,6 @@ qemuProcessStartValidateIOThreads(virDomainObj *vm,
         return -1;
     }
 
-    for (i = 0; i < vm->def->ncontrollers; i++) {
-        virDomainControllerDef *cont = vm->def->controllers[i];
-
-        if (cont->type == VIR_DOMAIN_CONTROLLER_TYPE_SCSI &&
-            cont->model == VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VIRTIO_SCSI &&
-            cont->iothread > 0 &&
-            !virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_SCSI_IOTHREAD)) {
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                           _("IOThreads for virtio-scsi not supported for "
-                             "this QEMU"));
-            return -1;
-        }
-    }
-
     return 0;
 }
 
-- 
2.37.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux