From: Roger Pau Monne <roger.pau@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] libxl: make domain resume API asynchronous
Date: Wed, 15 Aug 2012 18:40:36 +0100 [thread overview]
Message-ID: <502BDF14.1060103@citrix.com> (raw)
In-Reply-To: <7cec0543f67cefe3755b.1345046336@cosworth.uk.xensource.com>
Ian Campbell wrote:
> # HG changeset patch
> # User Ian Campbell <ian.campbell@citrix.com>
> # Date 1345046301 -3600
> # Node ID 7cec0543f67cefe3755bbad0c2262fa2e820d746
> # Parent 30bf79cc14d932fbe6ff572d0438e5a432f69b0a
> libxl: make domain resume API asynchronous
>
> Although the current implementation has no asynchromous parts I can
> envisage it needing to do bits of create/destroy like functionality
> which may need async support in the future.
>
> To do this make the meat into an internal libxl__domain_resume
> function in order to satisfy the no-internal-callers rule for the
> async function.
>
> Since I needed to touch the logging to s/ctx/CTX/ anyway switch to the
> LOG* helper macros.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Just a minor comment below.
>
> diff -r 30bf79cc14d9 -r 7cec0543f67c tools/libxl/libxl.c
> --- a/tools/libxl/libxl.c Wed Aug 15 14:45:21 2012 +0100
> +++ b/tools/libxl/libxl.c Wed Aug 15 16:58:21 2012 +0100
> @@ -396,15 +396,12 @@ int libxl_domain_rename(libxl_ctx *ctx,
> return rc;
> }
>
> -int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid, int suspend_cancel)
> +int libxl__domain_resume(libxl__gc *gc, uint32_t domid, int suspend_cancel)
> {
> - GC_INIT(ctx);
You can also use libxl_ctx *ctx = CTX; so there's no need to change all
occurrences of ctx with CTX (not that I have a problem with that).
next prev parent reply other threads:[~2012-08-15 17:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-15 15:58 [PATCH] libxl: make domain resume API asynchronous Ian Campbell
2012-08-15 17:40 ` Roger Pau Monne [this message]
2012-08-23 18:00 ` Ian Jackson
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=502BDF14.1060103@citrix.com \
--to=roger.pau@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xen.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).