Revert "xen/arm: Allocate memory for dom0 from the bottom with the 1:1 Workaround"

This reverts commit 6c21cb36e2.

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".

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
This commit is contained in:
Ian Campbell committed 2014-04-03 17:15:41 +01:00
1 parent 3bd940bead
commit 1be5c1947f
1 file changed
+2 -9
+2 -9
View File
@@ -69,19 +69,12 @@ static void allocate_memory_11(struct domain *d, struct kernel_info *kinfo)
{
paddr_t start;
paddr_t size;
struct page_info *pg = NULL;
struct page_info *pg;
unsigned int order = get_order_from_bytes(dom0_mem);
int res;
paddr_t spfn;
unsigned int bits;
for ( bits = PAGE_SHIFT + 1; bits < PADDR_BITS; bits++ )
{
pg = alloc_domheap_pages(d, order, MEMF_bits(bits));
if ( pg != NULL )
break;
}
pg = alloc_domheap_pages(d, order, 0);
if ( !pg )
panic("Failed to allocate contiguous memory for dom0");
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.