From: Andrew Cooper <andrew.cooper3@citrix.com>
To: George Dunlap <dunlapg@umich.edu>
Cc: Wei Liu <wei.liu2@citrix.com>,
Yang Hongyang <yanghy@cn.fujitsu.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v3 2/6] libxc/save: Adjust stream-position callbacks for checkpointed streams
Date: Wed, 13 May 2015 11:23:10 +0100 [thread overview]
Message-ID: <5553260E.6030508@citrix.com> (raw)
In-Reply-To: <CAFLBxZYmwDmHETt_Zc78si2YaJ-RzB-PUGNEy2F0bHsmkDP+Wg@mail.gmail.com>
On 13/05/15 11:09, George Dunlap wrote:
> On Tue, May 12, 2015 at 10:35 AM, Andrew Cooper
> <andrew.cooper3@citrix.com> wrote:
>> diff --git a/tools/libxc/xc_sr_save_x86_hvm.c b/tools/libxc/xc_sr_save_x86_hvm.c
>> index 58efdb9..f4604db 100644
>> --- a/tools/libxc/xc_sr_save_x86_hvm.c
>> +++ b/tools/libxc/xc_sr_save_x86_hvm.c
>> @@ -184,7 +184,13 @@ static int x86_hvm_start_of_stream(struct xc_sr_context *ctx)
>> return 0;
>> }
>>
>> -static int x86_hvm_end_of_stream(struct xc_sr_context *ctx)
>> +static int x86_hvm_start_of_checkpoint(struct xc_sr_context *ctx)
>> +{
>> + /* no-op */
>> + return 0;
>> +}
>> +
>> +static int x86_hvm_end_of_checkpoint(struct xc_sr_context *ctx)
>> {
>> int rc;
>>
>> @@ -209,7 +215,7 @@ static int x86_hvm_end_of_stream(struct xc_sr_context *ctx)
>> if ( rc )
>> return rc;
>>
>> - return rc;
>> + return 0;
>> }
> Nit: It looks like this boils down to:
>
> if ( rc != 0 ) return rc; else return 0;
>
> Why not just return rc and be done with it?
>
> (Just skimming through, no other comments ATM)
Cleaner when adding new hunks in, which other patches do.
~Andrew
next prev parent reply other threads:[~2015-05-13 10:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 9:35 [PATCH v3 0/6] Misc patches to aid migration v2 Remus support Andrew Cooper
2015-05-12 9:35 ` [PATCH v3 1/6] libxc/migration: Be rather stricter with illformed callers Andrew Cooper
2015-05-12 9:35 ` [PATCH v3 2/6] libxc/save: Adjust stream-position callbacks for checkpointed streams Andrew Cooper
2015-05-13 10:09 ` George Dunlap
2015-05-13 10:23 ` Andrew Cooper [this message]
2015-05-13 10:33 ` George Dunlap
2015-05-12 9:35 ` [PATCH v3 3/6] libxc/migration: Specification update for CHECKPOINT records Andrew Cooper
2015-05-12 9:44 ` Yang Hongyang
2015-05-12 9:54 ` David Vrabel
2015-05-12 10:49 ` Yang Hongyang
2015-05-12 10:53 ` Andrew Cooper
2015-05-12 9:35 ` [PATCH v3 4/6] tools/libxc: introduce process_record() Andrew Cooper
2015-05-12 9:35 ` [PATCH v3 5/6] libxc/migration: Pass checkpoint information into the save algorithm Andrew Cooper
2015-05-12 9:35 ` [PATCH v3 6/6] [RFC] [INCOMPLETE] libxc/restore: Remus Andrew Cooper
2015-05-12 9:56 ` 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=5553260E.6030508@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=dunlapg@umich.edu \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=yanghy@cn.fujitsu.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.