From 9b9f7196bf4d3f90fe49cf2f1c11772cfe02cf53 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 15 Nov 2023 18:29:28 +0100 Subject: [PATCH] B #6401: Fix virtio-blk queues configuration VIRTIO_BLK_QUEUES is only supported for virtio-blk driver (and vhost-usr-blk). This commits check the DISK is using the right disk before adding the parameter to the DRIVER. (cherry picked from commit 0611ffbd3ba352c19ef388646ab5b570023fab6a) --- src/vmm/LibVirtDriverKVM.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmm/LibVirtDriverKVM.cc b/src/vmm/LibVirtDriverKVM.cc index 7816f10aaa..e4c919ca62 100644 --- a/src/vmm/LibVirtDriverKVM.cc +++ b/src/vmm/LibVirtDriverKVM.cc @@ -1498,7 +1498,7 @@ int LibVirtDriver::deployment_description_kvm( blk_queues = default_blk_queues; } - if (!blk_queues.empty()) + if (!blk_queues.empty() && disk_bus == "virtio") { file << " queues=" << one_util::escape_xml_attr(blk_queues); }