From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: quintela@redhat.com, liang.z.li@intel.com, mjt@tls.msk.ru,
qemu-devel@nongnu.org, amit.shah@redhat.com, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 3/3] Document -incoming options
Date: Thu, 26 Feb 2015 20:34:13 +0000 [thread overview]
Message-ID: <20150226203413.GO2371@work-vm> (raw)
In-Reply-To: <87bnkp9c57.fsf@blackfin.pond.sub.org>
* Markus Armbruster (armbru@redhat.com) wrote:
> "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com> writes:
>
> > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> >
> > Document the various URI formats for -incoming, the previous
> > manpage and help text was wrong (out of date?)
>
> Thanks a lot for updating the docs.
>
> >
> > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> > Reviewed-by: Juan Quintela <quintela@redhat.com>
> > ---
> > qemu-options.hx | 29 ++++++++++++++++++++++++++---
> > 1 file changed, 26 insertions(+), 3 deletions(-)
> >
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index 85ca3ad..6d6d2a8 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -3169,12 +3169,35 @@ Set TB size.
> > ETEXI
> >
> > DEF("incoming", HAS_ARG, QEMU_OPTION_incoming, \
> > - "-incoming p prepare for incoming migration, listen on port p\n",
> > + "-incoming uri prepare for incoming migration, specifying source:\n" \
> > + " exec:command Execute 'command' use the stdout as\n" \
> > + " the migration stream\n" \
> > + " fd:num listen on the given fd\n" \
> > + " defer wait for the URI to be specified by\n" \
> > + " the monitor (migrate_incoming)\n" \
> > + " rdma:addr:port Listen on RDMA port on given address\n" \
> > + " tcp:addr:port listen on TCP port (optional address)\n" \
> > + " unix:path listen on the UNIX socket 'path'\n", \
> > QEMU_ARCH_ALL)
> > STEXI
> > -@item -incoming @var{port}
> > +@item -incoming @var{uri}
> > @findex -incoming
> > -Prepare for incoming migration, listen on @var{port}.
> > +Prepare for incoming migration, specifying the source of the migration stream
> > +@table @option
> > +@item exec:@var{command}
> > +Execute 'command' and use the stdout as the migration stream.
>
> Suggest:
>
> Execute 'command' and use its standard output as migration stream
> source.
Yes OK, can do that.
> > +@item fd:@var{num}
> > +listen on the given fd
>
> Well, we're not listening in usual the sense of listen(2). Suggest
>
> Use file descriptor @var{num}.
OK.
> > +@item defer
> > +wait for the URI to be specified by the monitor (migrate_incoming)
>
> "Wait", since the other items start with a capital letter.
>
> > +@item rdma:@var{addr}:@var{port}
> > +Listen on RDMA port on given address
>
> Let's call the thing between the colons "host" instead of "addr". The
> address consists of host and port.
Yes I thought about doing that, but it really isn't a host, it's the
identifier for the network cards you're going to listen on; saying
'host' suggests thats that you need to specify the source host of the
destination which is certainly wrong.
> rdma_start_incoming_migration() passes everything after rdma: to
> qemu_rdma_data_init(), which parses it with inet_parse(), then uses only
> host and port. The other members of InetSocketAddress are silently
> ignored. Wonderful.
Yes, there are also some weird dependencies in the RDMA code on
IPv6 availability I've not quite figured out yet.
> qemu_rdma_data_init() errors out if you omit host.
>
> inet_parse() accepts one of
>
> :PORT
> [V6ADDR]:PORT
> V4ADDR:PORT
> HOST:PORT
>
> followed by an options string. The options string isn't really parsed,
> instead substrings matching one of these patterns are recognized:
>
> ,to=PORT
> ,ipv4
> ,ipv6
>
> Note: you can specify ipv4,ipv6 or combine V6ADDR with ipv4, or V4ADDR
> with ipv6 to get both flags set in InetSocketAddress.
>
> > +@item tcp:@var{addr}:@var{port}[,ipv4][,ipv6][,to=to]
>
> [@var{host}] instead of @var{addr}, and [,to=@var{port}] instead of
> [,to=to], please.
OK.
> > +Listen on TCP port @var{port} (optional @var{addr} to specify address to listen on).
> > +The options ,ipv4, ipv6 and ,to are used in the same manner as chardev TCP options.
>
> The reference to chardev options makes sense, but the reader needs to
> make the connection from "chardev TCP options" to "-chardev socket"
> himself. Maybe "in the same manner as in -chardev socket"?
Yep OK.
> > +@item unix:@var{path}
> > +listen on the UNIX socket @var{path}
> > +@end table
> > ETEXI
> >
> > DEF("nodefaults", 0, QEMU_OPTION_nodefaults, \
>
> Don't get fooled by my many comments, this series is good stuff!
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2015-02-26 20:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 11:40 [Qemu-devel] [PATCH v3 0/3] -incoming defer Dr. David Alan Gilbert (git)
2015-02-19 11:40 ` [Qemu-devel] [PATCH v3 1/3] Add " Dr. David Alan Gilbert (git)
2015-02-20 7:56 ` Markus Armbruster
2015-02-20 9:09 ` Dr. David Alan Gilbert
2015-02-20 9:52 ` Markus Armbruster
2015-02-19 11:40 ` [Qemu-devel] [PATCH v3 2/3] Add migrate_incoming Dr. David Alan Gilbert (git)
2015-02-20 8:18 ` Markus Armbruster
2015-02-20 9:11 ` Dr. David Alan Gilbert
2015-02-20 13:05 ` Juan Quintela
2015-02-20 15:39 ` Eric Blake
2015-02-20 17:57 ` Markus Armbruster
2015-02-26 15:09 ` Dr. David Alan Gilbert
2015-02-19 11:40 ` [Qemu-devel] [PATCH v3 3/3] Document -incoming options Dr. David Alan Gilbert (git)
2015-02-20 9:15 ` Markus Armbruster
2015-02-26 20:34 ` Dr. David Alan Gilbert [this message]
2015-02-22 9:13 ` [Qemu-devel] [PATCH v3 0/3] -incoming defer Michael S. Tsirkin
2015-02-23 16:01 ` Dr. David Alan Gilbert
2015-02-23 10:38 ` Stefan Hajnoczi
2015-02-23 10:55 ` Dr. David Alan Gilbert
2015-02-24 11:01 ` Stefan Hajnoczi
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=20150226203413.GO2371@work-vm \
--to=dgilbert@redhat.com \
--cc=amit.shah@redhat.com \
--cc=armbru@redhat.com \
--cc=liang.z.li@intel.com \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.