Merge pull request #128 from devimc/2020-05-29/qmp/vhostBool

qemu/qmp: use boolean type for the vhost
This commit is contained in:
James O. D. Hunt 2020-06-02 15:54:48 +01:00 committed by GitHub
commit 7cc469641b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}