|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Revert "xen/arm: Allocate memory for dom0 from the bottom with the 1:1 Workaround"
On Mon, 2014-01-27 at 14:06 +0000, Ian Campbell wrote:
> On Fri, 2014-01-24 at 17:11 +0000, Julien Grall wrote:
> > On 01/14/2014 10:51 AM, Ian Campbell wrote:
> > > I think this problem is now fixed upstream, the intention was to
> > > eventually revert the workaround (Julien was going to tell me when it
> > > had gone into stable etc, but this is now a 4.5 era revert candidate).
> >
> > The patch was merged for 3.13.
>
> Thanks. I don't think we can revert for 4.4 now, but lets revisit for
> 4.5.
So should we revert
commit 6c21cb36e263de2db8716b477157a5b6cd531e1e
Author: Julien Grall <julien.grall@xxxxxxxxxx>
Date: Tue Oct 22 11:51:48 2013 +0100
xen/arm: Allocate memory for dom0 from the bottom with the 1:1
Workaround
Now?
------8<----------------
From 2e688b06954663f8ff7bc72e5bcf6a823090af9a Mon Sep 17 00:00:00 2001
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Wed, 2 Apr 2014 13:03:36 +0100
Subject: [PATCH] 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.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
xen/arch/arm/domain_build.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 502db84..a0b73d2 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -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");
--
1.7.10.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |