提交 8402be5c 编写于 作者: B Boris Fiuczynski 提交者: Martin Kletzander

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: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
上级 ff071bc8
......@@ -3737,7 +3737,7 @@ qemuCheckIothreads(virDomainDefPtr def,
}
/* 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) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("IOThreads only available for virtio pci disk"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册