x86: streamline copying to/from user memory
authorJan Beulich <jbeulich@suse.com>
Fri, 16 Dec 2016 13:32:51 +0000 (14:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 16 Dec 2016 13:32:51 +0000 (14:32 +0100)
commit2fdf5b25540f649ea8a41e4fdfb13cf399614af8
tree5a7f318ff89d96daf53a14553b638e7f73a59dd7
parentf04722f78b0f64e1f147389962d8f393a2fa8a7a
x86: streamline copying to/from user memory

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 dword ones), name all asm() operands,
and reduce the amount of (redundant) operands.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/usercopy.c
xen/include/asm-x86/uaccess.h