projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04254f
)
Revert "Revert "xen/arm: Allocate memory for dom0 from the bottom with the 1:1 Workar...
author
Ian Campbell
<ian.campbell@citrix.com>
Thu, 3 Apr 2014 16:54:34 +0000
(17:54 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Thu, 3 Apr 2014 16:55:35 +0000
(17:55 +0100)
This reverts commit
1be5c1947fd52f5faaf6b678a829d47b0ec88bfd
, effectively
reinstating
6c21cb36e263de2db8716b477157a5b6cd531e1e
.
Without this booting dom0 on systems with >4GB of RAM is broken because the
guest gets allocated a memory range which it cannot access.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain_build.c
patch
|
blob
|
history
diff --git
a/xen/arch/arm/domain_build.c
b/xen/arch/arm/domain_build.c
index a0b73d2a4d273d3805b7d7411aa7c09f89b8cfad..502db84690ea7deabc8e7cddfd8d3f1fc9d6c9bb 100644
(file)
--- a/
xen/arch/arm/domain_build.c
+++ b/
xen/arch/arm/domain_build.c
@@
-69,12
+69,19
@@
static void allocate_memory_11(struct domain *d, struct kernel_info *kinfo)
{
paddr_t start;
paddr_t size;
- struct page_info *pg;
+ struct page_info *pg
= NULL
;
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");