mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
qemu_validate: Fix capability check for disk queue_size
Commitad209e7d
adds QEMU_CAPS_VIRTIO_BLK_QUEUE_SIZE capability, but the following commit2d6d67e1
missed to use it and uses QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES instead. This commit fixes the mistake. Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
0cddf1978c
commit
d9afe162ab
@ -2845,7 +2845,7 @@ qemuValidateDomainDeviceDefDiskFrontend(const virDomainDiskDef *disk,
|
||||
return -1;
|
||||
}
|
||||
if (disk->queue_size > 0 &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES)) {
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_BLK_QUEUE_SIZE)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("queue-size property isn't supported by this QEMU binary"));
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user