xen/arm: domain_build: Don't switch to the guest P2M when copying data
authorJulien Grall <julien.grall@arm.com>
Mon, 28 Jan 2019 11:50:23 +0000 (11:50 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 29 Jan 2019 00:53:23 +0000 (16:53 -0800)
commitd0122fd7a406d5b9badaa2cb7c0479c3928db74e
treef67cd1f7cc1acd124dd694ce8024ff87539a4b77
parent988d93c1ae0937873eea541e763a99a8655ad38a
xen/arm: domain_build: Don't switch to the guest P2M when copying data

Until recently, kernel/initrd/dtb were loaded using guest VA and
therefore requiring to restore temporarily the P2M. This was reworked
in a series of commits (up to 9292086 "xen/arm: domain_build: Use
copy_to_guest_phys_flush_dcache in dtb_load") to use a guest PA.

This will also help a follow-up patch which will require
p2m_{save,restore}_state to work in pair to workaround an erratum.

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