From: Yang Hongyang <yanghy@cn.fujitsu.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] libxl/remus: fix the return value of the checkpoint callback
Date: Wed, 15 Jul 2015 20:30:33 +0800 [thread overview]
Message-ID: <55A65269.6040504@cn.fujitsu.com> (raw)
In-Reply-To: <1436962410.32371.25.camel@citrix.com>
On 07/15/2015 08:13 PM, Ian Campbell wrote:
> On Wed, 2015-07-15 at 18:32 +0800, Yang Hongyang wrote:
>> In checkpoint callback, we wait for the interval and then start
>> another checkpoint, so the ERROR_TIMEDOUT should be intended
>> and should not treat as error.
>>
>> This patch is based on
>> [PATCH v8 --for 4.6 COLO 00/25] COarse-grain LOck-stepping Virtual Machines for Non-stop Service
>
> Does that mean it won't apply to current staging?
No. This can apply on top of colo pre series.
>
> I think we probably want this fix ASAP rather than waiting for that
> series?
I can resubmit the patch apply to staging, but the colo pre series will need
to be rebased...
>
>> Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
>> CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
>> CC: Ian Campbell <Ian.Campbell@citrix.com>
>> CC: Wei Liu <wei.liu2@citrix.com>
>> ---
>> tools/libxl/libxl_remus.c | 11 +++++++----
>> 1 file changed, 7 insertions(+), 4 deletions(-)
>>
>> diff --git a/tools/libxl/libxl_remus.c b/tools/libxl/libxl_remus.c
>> index 46dcc3c..ffc92a7 100644
>> --- a/tools/libxl/libxl_remus.c
>> +++ b/tools/libxl/libxl_remus.c
>> @@ -355,11 +355,14 @@ static void remus_next_checkpoint(libxl__egc *egc, libxl__ev_time *ev,
>> * (xc_domain_save.c). in order to continue executing the infinite loop
>> * (suspend, checkpoint, resume) in xc_domain_save().
>> */
>> -
>> - if (rc)
>> + if (rc == ERROR_TIMEDOUT) {
>> + /* This is intended, we set the timeout and start another checkpoint */
>> + libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, 1);
>
> Please wrap this (slightly) overlong line (and probably the comment too
> which is borderline AFAICT).
>
>> + } else {
>> dss->rc = rc;
>> -
>> - libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, !rc);
>> + libxl__xc_domain_saverestore_async_callback_done(egc,
>> + &dss->sws.shs, !rc);
>> + }
>> }
>>
>> /*---------------------- remus callbacks (restore) -----------------------*/
>
>
> .
>
--
Thanks,
Yang.
next prev parent reply other threads:[~2015-07-15 12:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 10:32 [PATCH] libxl/remus: fix the return value of the checkpoint callback Yang Hongyang
2015-07-15 12:13 ` Ian Campbell
2015-07-15 12:30 ` Yang Hongyang [this message]
2015-07-15 13:35 ` [PATCH] libxl: events: Do not abort remus with ERROR_TIMEOUT Ian Jackson
2015-07-15 13:45 ` Ian Campbell
2015-07-15 13:47 ` Wei Liu
2015-07-16 2:44 ` Yang Hongyang
2015-07-16 15:51 ` Ian Campbell
2015-07-15 13:37 ` [PATCH] libxl/remus: fix the return value of the checkpoint callback Ian Jackson
2015-07-16 2:45 ` Yang Hongyang
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=55A65269.6040504@cn.fujitsu.com \
--to=yanghy@cn.fujitsu.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=wei.liu2@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 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.