From: Goncalo Gomes <Goncalo.Gomes@EU.CITRIX.COM>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 1 of 2 v2] xl: code motion of vncviewer() and `struct domain_create`
Date: Tue, 15 May 2012 17:07:13 +0100 [thread overview]
Message-ID: <20120515160713.GA24401@eire.uk.xensource.com> (raw)
In-Reply-To: <1337093125.19852.21.camel@zakaz.uk.xensource.com>
On Tue, 15 May 2012, Ian Campbell wrote:
> On Tue, 2012-05-15 at 03:39 +0100, Goncalo Gomes wrote:
> > tools/libxl/xl_cmdimpl.c | 50 ++++++++++++++++++++++++-----------------------
> > 1 files changed, 26 insertions(+), 24 deletions(-)
> >
> >
> > Signed-off-by: Goncalo Gomes <Goncalo.Gomes@EU.CITRIX.COM>
>
> Committed-by: Ian Campbell <ian.campbell@citrix.com>
>
> Thanks!
>
> Not sure what tool you use to send, but it is usual to put the diffstat
> after the commit + s-o-b and a "---" marker. This way the standard tools
> (e.g. git am) knows not to include it in the commit message. In this
> case I've done it by hand. I think hg email is a bit broken in this
> regard (puts the diffstat at the top), in which case feel free not to
> use the corresponding option next time.
Thanks for fixing this by hand, I used hg email, with the '-d' switch
to add the diffstat. I will defer from using it next time.
Goncalo
> Ian.
>
> >
> > diff -r cd4dd23a831d -r 380d5f86dfdd tools/libxl/xl_cmdimpl.c
> > --- a/tools/libxl/xl_cmdimpl.c Fri May 11 18:59:07 2012 +0100
> > +++ b/tools/libxl/xl_cmdimpl.c Tue May 15 02:26:51 2012 +0000
> > @@ -120,6 +120,24 @@ static const char *action_on_shutdown_na
> >
> > #define SAVEFILE_BYTEORDER_VALUE ((uint32_t)0x01020304UL)
> >
> > +struct domain_create {
> > + int debug;
> > + int daemonize;
> > + int monitor; /* handle guest reboots etc */
> > + int paused;
> > + int dryrun;
> > + int quiet;
> > + int console_autoconnect;
> > + const char *config_file;
> > + const char *extra_config; /* extra config string */
> > + const char *restore_file;
> > + int migrate_fd; /* -1 means none */
> > + char **migration_domname_r; /* from malloc */
> > + int incr_generationid;
> > +};
> > +
> > +
> > +
> > static int qualifier_to_id(const char *p, uint32_t *id_r)
> > {
> > int i, alldigit;
> > @@ -186,6 +204,14 @@ static void find_domain(const char *p)
> > common_domname = was_name ? p : libxl_domid_to_name(ctx, domid);
> > }
> >
> > +static int vncviewer(const char *domain_spec, int autopass)
> > +{
> > + find_domain(domain_spec);
> > + libxl_vncviewer_exec(ctx, domid, autopass);
> > + fprintf(stderr, "Unable to execute vncviewer\n");
> > + return 1;
> > +}
> > +
> > static int acquire_lock(void)
> > {
> > int rc;
> > @@ -1399,22 +1425,6 @@ static int preserve_domain(libxl_ctx *ct
> > return rc == 0 ? 1 : 0;
> > }
> >
> > -struct domain_create {
> > - int debug;
> > - int daemonize;
> > - int monitor; /* handle guest reboots etc */
> > - int paused;
> > - int dryrun;
> > - int quiet;
> > - int console_autoconnect;
> > - const char *config_file;
> > - const char *extra_config; /* extra config string */
> > - const char *restore_file;
> > - int migrate_fd; /* -1 means none */
> > - char **migration_domname_r; /* from malloc */
> > - int incr_generationid;
> > -};
> > -
> > static int freemem(libxl_domain_build_info *b_info)
> > {
> > int rc, retries = 3;
> > @@ -2175,14 +2185,6 @@ int main_console(int argc, char **argv)
> > return 1;
> > }
> >
> > -static int vncviewer(const char *domain_spec, int autopass)
> > -{
> > - find_domain(domain_spec);
> > - libxl_vncviewer_exec(ctx, domid, autopass);
> > - fprintf(stderr, "Unable to execute vncviewer\n");
> > - return 1;
> > -}
> > -
> > int main_vncviewer(int argc, char **argv)
> > {
> > static const struct option long_options[] = {
>
>
next prev parent reply other threads:[~2012-05-15 16:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 2:39 [PATCH 0 of 2 v2] Add vncviewer xm compatibility options Goncalo Gomes
2012-05-15 2:39 ` [PATCH 1 of 2 v2] xl: code motion of vncviewer() and `struct domain_create` Goncalo Gomes
2012-05-15 14:45 ` Ian Campbell
2012-05-15 16:07 ` Goncalo Gomes [this message]
2012-05-15 2:39 ` [PATCH 2 of 2 v2] Introduce vncviewer xm compatibility options Goncalo Gomes
2012-05-15 14:43 ` Ian Campbell
2012-05-15 16:13 ` Goncalo Gomes
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=20120515160713.GA24401@eire.uk.xensource.com \
--to=goncalo.gomes@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=xen-devel@lists.xensource.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.