On Tue, 2015-01-13 at 14:25 +0000, Julien Grall wrote:
> Flask code already provides an helper to copy a string from guest. In a later

"a helper".

> patch, the new DT hypercalls will need a similar function.
> 
> To avoid code duplication, copy the flask helper (flask_copying_string) to
> common code:
>     - Rename into safe_copy_string_from_guest
>     - Add comment to explain the extra +1
>     - Return directly the buffer and use the macros provided by

"Return the buffer directly and...".

>     xen/err.h to return an error code if necessary.
> 
> Signed-off-by: Julien Grall <julien.gr...@linaro.org>
> Cc: Daniel De Graaf <dgde...@tycho.nsa.gov>
> Cc: Ian Jackson <ian.jack...@eu.citrix.com>
> Cc: Jan Beulich <jbeul...@suse.com>
> Cc: Keir Fraser <k...@xen.org>

Acked-by: Ian Campbell <ian.campb...@citrix.com>




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to