Re: [libvirt PATCH 11/16] qemu: vhost-user-fs: build extdevice for zpci

2021-10-06 Thread Peter Krempa
On Wed, Oct 06, 2021 at 09:15:17 +0200, Ján Tomko wrote:
> Other devices (includes 9p-based fsdev) call this wrapper
> before formatting the device.
> 
> Add it here too.
> 
> Signed-off-by: Ján Tomko 
> ---
>  src/qemu/qemu_command.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Peter Krempa 



[libvirt PATCH 11/16] qemu: vhost-user-fs: build extdevice for zpci

2021-10-06 Thread Ján Tomko
Other devices (includes 9p-based fsdev) call this wrapper
before formatting the device.

Add it here too.

Signed-off-by: Ján Tomko 
---
 src/qemu/qemu_command.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index dc4f91ce25..8c8aafb13d 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -2095,6 +2095,9 @@ qemuBuildVHostUserFsCommandLine(virCommand *cmd,
 virCommandAddArg(cmd, "-chardev");
 virCommandAddArg(cmd, chrdevstr);
 
+if (qemuCommandAddExtDevice(cmd, >info) < 0)
+return -1;
+
 if (!(devstr = qemuBuildVHostUserFsDevStr(fs, def, chardev_alias, priv)))
 return -1;
 
-- 
2.31.1