xen/arm: guest_copy: Extend the prototype to pass the vCPU
authorJulien Grall <julien.grall@linaro.org>
Tue, 12 Dec 2017 19:02:01 +0000 (19:02 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 12 Dec 2017 19:58:10 +0000 (11:58 -0800)
commit2986481b3d9e6d382f0ed9ef3d0be365ccbc309e
tree9cae85642dbc7f241d03dbb237f910c98236f4c4
parent19de0359cf58d187b4fa50ede4e764e4715e4d69
xen/arm: guest_copy: Extend the prototype to pass the vCPU

Currently, guest_copy assumes the copy will only be done for the current
vCPU. copy_guest is meant to be vCPU agnostic, so extend the prototype
to pass the vCPU.

At the same time, encapsulate the vCPU in an union to allow extension
for copying from a guest domain (ipa case) in the future.

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