1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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)
This commit is contained in:
Ruben S. Montero 2023-11-15 18:29:28 +01:00
parent d69115283f
commit 9b9f7196bf
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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);
}