mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Correct disk type checking logic for iothreads
Finding the right type of disk should check for virtio as bus and pci as device address type. Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Reviewed-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
This commit is contained in:
parent
ff071bc8b2
commit
8402be5c10
@ -3737,7 +3737,7 @@ qemuCheckIothreads(virDomainDefPtr def,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Right "type" of disk" */
|
/* Right "type" of disk" */
|
||||||
if (disk->bus != VIR_DOMAIN_DISK_BUS_VIRTIO &&
|
if (disk->bus != VIR_DOMAIN_DISK_BUS_VIRTIO ||
|
||||||
disk->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI) {
|
disk->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("IOThreads only available for virtio pci disk"));
|
_("IOThreads only available for virtio pci disk"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user