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:
parent
d69115283f
commit
9b9f7196bf
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user