Re: [Xen-devel] [PATCH] x86: streamline copying to/from user memory

2016-12-15 Thread Andrew Cooper
On 06/12/16 11:25, Jan Beulich wrote: > Their size parameters being "unsigned", there's neither a point for > them returning "unsigned long", nor for any of their (assembly) > arithmetic to involved 64-bit operations on other than addresses. > > Take the opportunity and fold __do_clear_user() into

[Xen-devel] [PATCH] x86: streamline copying to/from user memory

2016-12-06 Thread Jan Beulich
Their size parameters being "unsigned", there's neither a point for them returning "unsigned long", nor for any of their (assembly) arithmetic to involved 64-bit operations on other than addresses. Take the opportunity and fold __do_clear_user() into its single user (using qword stores instead of