From: Jennifer Herbert <Jennifer.Herbert@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
PaulDurrant <paul.durrant@citrix.com>,
Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v3] dm_op: Add xendevicemodel_modified_memory_bulk.
Date: Wed, 29 Mar 2017 16:38:32 +0100 [thread overview]
Message-ID: <58DBD4F8.9030209@citrix.com> (raw)
In-Reply-To: <58DBE6C9020000780014A1F6@prv-mh.provo.novell.com>
On 29/03/17 15:54, Jan Beulich wrote:
>>>>>> On 28.03.17 at 15:18, <jennifer.herbert@citrix.com> wrote:
>>>> @@ -441,13 +481,8 @@ static int dm_op(domid_t domid,
>>>> struct xen_dm_op_modified_memory *data =
>>>> &op.u.modified_memory;
>>>>
>>>> - const_op = false;
>>>> -
>>>> - rc = -EINVAL;
>>>> - if ( data->pad )
>>>> - break;
>>>> -
>>>> - rc = modified_memory(d, data);
>>>> + rc = modified_memory(d, data, &bufs[1]);
>>>> + const_op = (rc != 0);
>>> Isn't this wrong now, i.e. don't you need to copy back the
>>> header now in all cases?
>> I only define what I'll set nr_extents to in case of error, and of
>> course opaque
>> is opaque.
> Well, but you do need the opaque value for the continuation,
> don't you? In which case you need to also write back on
> -ERESTART. And as you say you need to write back in case
> of error. So I'd expect
>
> const_op = !rc;
>
Quite right, see you point now - I didn't notice I'd inverted the logic.
-jenny
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2017-03-29 15:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 13:18 [PATCH v3] dm_op: Add xendevicemodel_modified_memory_bulk Jennifer Herbert
2017-03-29 10:38 ` Jan Beulich
2017-03-29 14:35 ` Jennifer Herbert
2017-03-29 14:54 ` Jan Beulich
2017-03-29 15:38 ` Jennifer Herbert [this message]
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=58DBD4F8.9030209@citrix.com \
--to=jennifer.herbert@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=paul.durrant@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 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).