diff options
author | Laurent Vivier | 2022-10-21 11:09:19 +0200 |
---|---|---|
committer | Jason Wang | 2022-10-28 07:28:52 +0200 |
commit | 7651b3211904eda3207d50f31c7f9acc8c375cec (patch) | |
tree | 33ff9339e6c2c8e3d6f520e53f076d5a2df37b27 /qemu-img.c | |
parent | qemu-sockets: move and rename SocketAddress_to_str() (diff) | |
download | qemu-7651b3211904eda3207d50f31c7f9acc8c375cec.tar.gz qemu-7651b3211904eda3207d50f31c7f9acc8c375cec.tar.xz qemu-7651b3211904eda3207d50f31c7f9acc8c375cec.zip |
qemu-sockets: update socket_uri() and socket_parse() to be consistent
To be consistent with socket_uri(), add 'tcp:' prefix for inet type in
socket_parse(), by default socket_parse() use tcp when no prefix is
provided (format is host:port).
In socket_uri(), use 'vsock:' prefix for vsock type rather than 'tcp:'
because it makes a vsock address look like an inet address with CID
misinterpreted as host.
Goes back to commit 9aca82ba31 "migration: Create socket-address parameter"
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions