提交 90cc1b92 编写于 作者: A Andrea Bolognani

qemu: Always format iothread for virtio-blk

So far we've only formatted it for virtio-blk-pci and
virtio-blk-ccw, but other virtio-blk devices also support
the corresponding option; moreover, we've always formatted
it for all virtio-scsi devices.
Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 4dca4205
......@@ -2014,11 +2014,8 @@ qemuBuildDiskDeviceStr(const virDomainDef *def,
virBufferAddLit(&opt, "virtio-blk-pci");
}
if (disk->iothread &&
(disk->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW ||
disk->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI)) {
if (disk->iothread)
virBufferAsprintf(&opt, ",iothread=iothread%u", disk->iothread);
}
qemuBuildIoEventFdStr(&opt, disk->ioeventfd, qemuCaps);
if (disk->event_idx &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册