From cc538766613bd60ef4db042168d20dfc3119d553 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Fri, 29 May 2020 20:40:35 +0000 Subject: [PATCH] qemu/qmp: use boolean type for the vhost vhost is a Netdev Tap Option used to configure a host TAP network interface backend, according to the QMP API documentation the type for such option must be a boolean. Use boolean type for vhost option to fix the following error on recent versions of QEMU: ``` Invalid parameter type for 'vhost', expected: boolean ``` Signed-off-by: Julio Montes --- qemu/qmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/qmp.go b/qemu/qmp.go index bf9a77dda1..5585a8792b 100644 --- a/qemu/qmp.go +++ b/qemu/qmp.go @@ -993,7 +993,7 @@ func (q *QMP) ExecuteNetdevAddByFds(ctx context.Context, netdevType, netdevID st } if len(vhostFdNames) > 0 { vhostFdNameStr := strings.Join(vhostFdNames, ":") - args["vhost"] = "on" + args["vhost"] = true args["vhostfds"] = vhostFdNameStr }