From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH] xen: arm: correct return value of raw_copy_to_guest_* Date: Fri, 06 Dec 2013 16:00:33 +0000 Message-ID: <52A1F4A1.5080201@linaro.org> References: <1386343510-31974-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1386343510-31974-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , xen-devel@lists.xen.org Cc: tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org 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. 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. -- Julien Grall