提交 56f6de93 编写于 作者: B Boris Fiuczynski 提交者: Ján Tomko

qemu: Support for virtio-9p-ccw

Adding the recently in qemu added 9pfs support for virtio-ccw.
Signed-off-by: NBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: NJason J. Herne <jjherne@us.ibm.com>
Reviewed-by: NStefan Zimmermann <stzi@linux.vnet.ibm.com>
上级 54997a4d
...@@ -4397,7 +4397,11 @@ qemuBuildFSDevStr(virDomainDefPtr def, ...@@ -4397,7 +4397,11 @@ qemuBuildFSDevStr(virDomainDefPtr def,
goto error; goto error;
} }
virBufferAddLit(&opt, "virtio-9p-pci"); if (fs->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW)
virBufferAddLit(&opt, "virtio-9p-ccw");
else
virBufferAddLit(&opt, "virtio-9p-pci");
virBufferAsprintf(&opt, ",id=%s", fs->info.alias); virBufferAsprintf(&opt, ",id=%s", fs->info.alias);
virBufferAsprintf(&opt, ",fsdev=%s%s", QEMU_FSDEV_HOST_PREFIX, fs->info.alias); virBufferAsprintf(&opt, ",fsdev=%s%s", QEMU_FSDEV_HOST_PREFIX, fs->info.alias);
virBufferAsprintf(&opt, ",mount_tag=%s", fs->dst); virBufferAsprintf(&opt, ",mount_tag=%s", fs->dst);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册