mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 19:35:32 +00:00
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 <julio.montes@intel.com>
This commit is contained in:
parent
7efaf0b1cd
commit
cc53876661
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user