xen/arm: domain_build: Use copy_to_guest_phys_flush_dcache in dtb_load
authorJulien Grall <julien.grall@linaro.org>
Tue, 12 Dec 2017 19:02:06 +0000 (19:02 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 12 Dec 2017 20:11:39 +0000 (12:11 -0800)
commit92920865647bd344287f42705d13e01a29192ec1
tree690d6aac6fca4717daa39843a80edc6cb638823e
parentbb7e6d565d928a6be92a62edb7b6a6b9ed56dfbc
xen/arm: domain_build: Use copy_to_guest_phys_flush_dcache in dtb_load

The function dtb_load is dealing with IPA but uses gvirt_to_maddr to do
the translation. This is currently working fine because the stage-1 MMU
is disabled.

Rather than relying on such assumption, use the new
copy_to_guest_phys_flush_dcache. This also result to a slightly more
comprehensible code.

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