xen/arm: raw_copy_to_guest_helper: Rework the prototype and rename it
authorJulien Grall <julien.grall@linaro.org>
Tue, 12 Dec 2017 19:01:58 +0000 (19:01 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 12 Dec 2017 19:49:39 +0000 (11:49 -0800)
commit466473a53e7c5c1dd38834faa54a960dc861a7cf
tree95119b9b896690dc6135baac2786a5c299a62f1b
parent899298494dd2e2c0ea1996bf9e389c6635b046e3
xen/arm: raw_copy_to_guest_helper: Rework the prototype and rename it

All the helpers within arch/arm/guestcopy.c are doing the same things:
copy data from/to the guest.

At the moment, the logic is duplicated in each helpers making more
difficult to implement new variant.

The first step for the consolidation is to get a common prototype and a
base. For convenience (it is at the beginning of the file!),
raw_copy_to_guest_helper is chosen.

The function is now renamed copy_guest to show it will be a
generic function to copy data from/to the guest. Note that for now, only
copying to guest virtual address is supported. Follow-up patches will
extend the support.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/guestcopy.c