1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-09-30 17:45:19 +03:00

conf/domain_validate: Validate the disk queue_size

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Han Han
2023-07-21 10:36:40 +08:00
committed by Michal Privoznik
parent cef25914eb
commit ac9c9b621f

View File

@@ -788,6 +788,12 @@ virDomainDiskDefValidate(const virDomainDef *def,
return -1;
}
if (disk->queue_size) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("queue_size attribute in disk driver is only supported for virtio bus"));
return -1;
}
if (disk->event_idx != VIR_TRISTATE_SWITCH_ABSENT) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("disk event_idx mode supported only for virtio bus"));