]> xenbits.xensource.com Git - people/tklengyel/xen.git/commit
x86: split __copy_{from,to}_user() into "guest" and "unsafe" variants
authorJan Beulich <jbeulich@suse.com>
Fri, 19 Feb 2021 16:19:19 +0000 (17:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Feb 2021 16:19:19 +0000 (17:19 +0100)
commit2d824791504f4119f04f95bafffec2e37d319c25
tree89741a723a1d019035e695ebf2c59e509a803c07
parent6a1d72d3739e330caf728ea07d656d7bf568824b
x86: split __copy_{from,to}_user() into "guest" and "unsafe" variants

The "guest" variants are intended to work with (potentially) fully guest
controlled addresses, while the "unsafe" variants are intended to be
used in order to access addresses not (directly) under guest control,
within Xen's part of virtual address space. Subsequently we will want
them to have distinct behavior, so as first step identify which one is
which. For now, both groups of constructs alias one another.

Double underscore prefixes are retained only on
__copy_{from,to}_guest_pv(), to allow still distinguishing them from
their "checking" counterparts once they also get renamed (to
copy_{from,to}_guest_pv()).

Add previously missing __user at some call sites.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org> [shadow]
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/gdbstub.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/pv/emul-gate-op.c
xen/arch/x86/pv/emul-priv-op.c
xen/arch/x86/pv/mm.c
xen/arch/x86/pv/mm.h
xen/arch/x86/pv/ro-page-fault.c
xen/arch/x86/traps.c
xen/arch/x86/usercopy.c
xen/include/asm-x86/guest_access.h
xen/include/asm-x86/uaccess.h