From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, Eric Blake <eblake@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Jason Wang <jasowang@redhat.com>
Subject: Re: [PATCH v6 12/13] qemu-sockets: update socket_uri() to be consistent with socket_parse()
Date: Wed, 13 Jul 2022 18:26:46 +0100 [thread overview]
Message-ID: <Ys8AVraNKGE11T8A@redhat.com> (raw)
In-Reply-To: <cf99a3cf-90a5-6890-a9ec-68506de0ad38@redhat.com>
On Wed, Jul 13, 2022 at 06:46:17PM +0200, Laurent Vivier wrote:
> On 12/07/2022 14:05, Dr. David Alan Gilbert wrote:
> > * Laurent Vivier (lvivier@redhat.com) wrote:
> > > Remove 'tcp:' prefix for inet type (because inet can be 'tcp' or 'udp'
> > > and socket_parse() doesn't recognize it), the format is 'host:port'.
> >
> > I don't think I understand why tests/qtest/migration-test.c
> > test_precopy_common is happy with this; it does:
> >
> > if (!args->connect_uri) {
> > g_autofree char *local_connect_uri =
> > migrate_get_socket_address(to, "socket-address");
> > migrate_qmp(from, local_connect_uri, "{}");
> >
> > which hmm, is the code you're changing what was in SocketAddress_to_str
> > which is what migrate_get_socket_address uses; but then the migrate_qmp
> > I don't think will take a migrate uri without the tcp: on the front.
>
> It's a good point.
>
> I think socket_parse() should accept the 'tcp:' prefix, and thus
> socket_uri() should generate it, so it will be usable with the qmp migrate
> command.
>
> I'm going to add 'tcp:' case in socket_parse() and make socket_uri() to generate it.
I'd say any code in util/qemu-sockets.c should only work in terms of
generic concepts. If we're formattting/parsing a migration URI, the
helper APIs should live in the migration/ subdir.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2022-07-13 17:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 6:28 [PATCH v6 00/13] qapi: net: add unix socket type support to netdev backend Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 01/13] net: introduce convert_host_port() Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 02/13] net: remove the @errp argument of net_client_inits() Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 03/13] net: simplify net_client_parse() error management Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 04/13] qapi: net: introduce a way to bypass qemu_opts_parse_noisily() Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 05/13] qapi: net: add stream and dgram netdevs Laurent Vivier
2022-07-06 14:23 ` Markus Armbruster
2022-07-06 6:28 ` [PATCH v6 06/13] net: stream: Don't ignore EINVAL on netdev socket connection Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 07/13] net: stream: add unix socket Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 08/13] net: dgram: make dgram_dst generic Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 09/13] net: dgram: move mcast specific code from net_socket_fd_init_dgram() Laurent Vivier
2022-07-06 6:28 ` [PATCH v6 10/13] net: dgram: add unix socket Laurent Vivier
2022-07-06 6:46 ` [PATCH v6 12/13] qemu-sockets: update socket_uri() to be consistent with socket_parse() Laurent Vivier
2022-07-12 12:05 ` Dr. David Alan Gilbert
2022-07-13 16:46 ` Laurent Vivier
2022-07-13 17:26 ` Daniel P. Berrangé [this message]
2022-07-06 6:46 ` [PATCH v6 13/13] net: stream: move to QIO Laurent Vivier
2022-07-06 6:53 ` [PATCH v6 11/13] qemu-sockets: move and rename SocketAddress_to_str() Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ys8AVraNKGE11T8A@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=eblake@redhat.com \
--cc=jasowang@redhat.com \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).