Revert "xen/arm: Allocate memory for dom0 from the bottom with the 1:1 Workaround"
authorIan Campbell <ian.campbell@citrix.com>
Fri, 4 Apr 2014 12:56:59 +0000 (13:56 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 16 Apr 2014 15:23:15 +0000 (16:23 +0100)
commit34f21f9d2b1f806fc15e66d6dff9138ec45f5565
tree433e0ffe366126b49449f2bfa63fe5d6384c6a40
parenta8e15b7550f9c575559dd2dc193f0614b5837799
Revert "xen/arm: Allocate memory for dom0 from the bottom with the 1:1 Workaround"

This reverts commit 6c21cb36e263de2db8716b477157a5b6cd531e1e.

The Linux = issue which this works around was fixed in v3.13 via f52bb722547f
"ARM: mm: Correct virt_to_phys patching for 64 bit physical addresses".

This is the second attempt to revert this. Now that we have fixed
allocate_memory_11 to allocate accessible memory on 32-bit this is safe to do.
This is not quite a straight revert since we need to ensure that for 32-bit
domain 0 we do not allocate dom0's memory above 4GB where the domain cannot
access it without paging (which is disabled at start of day) and LPAE (which
the kernel may not support) enabled.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
[ ijc -- dropped debug code ]
xen/arch/arm/domain_build.c