From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen: arm: correct return value of raw_copy_to_guest_*
Date: Fri, 06 Dec 2013 17:42:34 +0000 [thread overview]
Message-ID: <52A20C8A.9020605@linaro.org> (raw)
In-Reply-To: <1386349428.25188.6.camel@kazak.uk.xensource.com>
On 12/06/2013 05:03 PM, Ian Campbell wrote:
> On Fri, 2013-12-06 at 16:00 +0000, Julien Grall wrote:
>>
>> On 12/06/2013 03:25 PM, Ian Campbell wrote:
>>> This is a generic interface which is supposed to return the number of bytes
>>> which were not copied. Make it so and update the one incorrect caller.
>>
>> This is also the same for raw_clear_guest and raw_copy_from_guest.
>
> Oops, yes.
>
>> It seems the most of ARM code assume that these functions (or macro that
>> call them) will return a negative value if it's fails.
>
> Hrm, the ones I looked at all seemed to match the return the number of
> bytes not copied pattern (or more often just cared about 0 on success
> and !0 otherwise). Did you find some which aren't that way?
>
copy_from_guest_offset is a macro which use raw_copy_from_guest.
In xenmem_add_to_physmap_range (arch/arm/mm.c), we only check if the
return is negative.
--
Julien Grall
next prev parent reply other threads:[~2013-12-06 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-06 15:25 [PATCH] xen: arm: correct return value of raw_copy_to_guest_* Ian Campbell
2013-12-06 16:00 ` Julien Grall
2013-12-06 17:03 ` Ian Campbell
2013-12-06 17:42 ` Julien Grall [this message]
2013-12-06 17:44 ` Ian Campbell
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=52A20C8A.9020605@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--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.