From: Julien Grall <julien.grall@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
IanJackson <Ian.Jackson@eu.citrix.com>, TimDeegan <tim@xen.org>,
xen-devel <xen-devel@lists.xenproject.org>,
KeirFraser <keir@xen.org>
Subject: Re: [PATCH] x86/NUMA: make init_node_heap() respect Xen heap limit
Date: Fri, 4 Sep 2015 13:50:25 +0100 [thread overview]
Message-ID: <55E99391.6000501@citrix.com> (raw)
In-Reply-To: <55E9A474020000780009FA14@prv-mh.provo.novell.com>
On 04/09/15 13:02, Jan Beulich wrote:
>>>> On 04.09.15 at 13:29, <julien.grall@citrix.com> wrote:
>> Anyway, I tried your suggestion to dropped the call to xenheap_max_mfn when
>> Xen
>> setups the xenheap for arm64 and it allows me to boot correctly Xen on
>> X-gene.
>> See patch below, I can send the patch in a separate thread if necessary.
>
> That would depend on Ian and Wei - to me it looks okay this way,
> perhaps minus the title wanting to be re-written.
I took the previous commit message and rewrite it a bit but forgot to
update the title. How about:
"xen/arm64: Remove call to xenheap_max_mfn when setup the xenheap"
>> commit b11ab8e4982228d7944e11010f5b8eec890caf30
>> Author: Julien Grall <julien.grall@citrix.com>
>> Date: Thu Sep 3 21:49:31 2015 +0100
>>
>> xen: pagealloc: Correctly calculate the number of xenheap bits
>>
>> The commit 88e3ed61642bb393458acc7a9bd2f96edc337190 "x86/NUMA: make
>> init_node_heap() respect Xen heap limit" breaks boot on the arm64 board
>> X-Gene.
>>
>> The xenheap bits variable is used to know the last RAM MFN always mapped
>> in Xen virtual memory. If the value is 0, it means that all the memory is
>> always mapped in Xen virtual memory.
>>
>> On X-gene the RAM bank resides above 128GB and last xenheap MFN is
>> 0x4400000. With the new way to calculate the number of bits, xenheap_bits
>> will be equal to 38 bits. This will result to hide all the RAM and the
>> impossibility to allocate xenheap memory.
>>
>> Given that aarch64 have always all the memory mapped in Xen virtual
>> memory, it's not necessary to call xenheap_max_mfn which set the number
>> of bits.
>>
>> Suggested-by: Jan Beulich <jbeulich@suse.com>
>> Signed-off-by: Julien Grall <julien.grall@citrix.com>
>>
>> diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
>> index 6626eba..48f734f 100644
>> --- a/xen/arch/arm/setup.c
>> +++ b/xen/arch/arm/setup.c
>> @@ -665,7 +665,6 @@ static void __init setup_mm(unsigned long dtb_paddr, size_t dtb_size)
>> xenheap_virt_end = XENHEAP_VIRT_START + ram_end - ram_start;
>> xenheap_mfn_start = ram_start >> PAGE_SHIFT;
>> xenheap_mfn_end = ram_end >> PAGE_SHIFT;
>> - xenheap_max_mfn(xenheap_mfn_end);
>>
>> /*
>> * Need enough mapped pages for copying the DTB.
>> --
>> Julien Grall
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
--
Julien Grall
next prev parent reply other threads:[~2015-09-04 12:51 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 8:37 [PATCH] x86/NUMA: make init_node_heap() respect Xen heap limit Jan Beulich
2015-08-27 9:25 ` Wei Liu
2015-08-27 10:11 ` Andrew Cooper
2015-08-27 14:43 ` Wei Liu
2015-09-01 10:28 ` Ian Campbell
2015-09-03 20:01 ` Julien Grall
2015-09-03 20:58 ` Julien Grall
2015-09-04 7:37 ` Jan Beulich
2015-09-04 8:27 ` Ian Campbell
2015-09-04 8:39 ` Jan Beulich
2015-09-04 8:52 ` Ian Campbell
2015-09-04 9:09 ` Jan Beulich
2015-09-04 11:29 ` Julien Grall
2015-09-04 12:02 ` Jan Beulich
2015-09-04 12:05 ` Wei Liu
2015-09-04 12:50 ` Julien Grall [this message]
2015-09-04 12:57 ` Ian Campbell
2015-09-04 12:52 ` Ian Campbell
2015-09-04 12:53 ` Julien Grall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55E99391.6000501@citrix.com \
--to=julien.grall@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).