From: Ian Campbell Subject: [PATCH] Revert "xen/arm: Allocate memory for dom0 from the bottom with the 1:1 Workaround" Date: Wed, 2 Apr 2014 13:04:27 +0100 Message-ID: <1396440267.8667.327.camel@kazak.uk.xensource.com> References: <1389327171-3685-1-git-send-email-karim.allah.ahmed@gmail.com> <1389368924.6423.17.camel@kazak.uk.xensource.com> <1389696705.9887.52.camel@kazak.uk.xensource.com> <52E29EB9.7020906@linaro.org> <1390831566.12230.30.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1390831566.12230.30.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 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 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 --- 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