From: Peng Fan <van.freenix@gmail.com>
To: julien.grall@arm.com, sstabellini@kernel.org
Cc: van.freenix@gmail.com, xen-devel@lists.xen.org
Subject: [PATCH] xen/arm: setup: initialize xenheap mappings after boot pages avaiable
Date: Fri, 27 May 2016 13:31:59 +0800 [thread overview]
Message-ID: <1464327119-6242-1-git-send-email-van.freenix@gmail.com> (raw)
To ARM64, setup_xenheap_mappings may call alloc_boot_pages to allocate
first level page table, if there is a big chunk memory (ie, >512GB).
So, need to make sure boot pages are ready before setup xenheap mappings.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Julien Grall <julien.grall@arm.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
---
xen/arch/arm/setup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index dcb23b7..24cf9d3 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -641,8 +641,6 @@ static void __init setup_mm(unsigned long dtb_paddr, size_t dtb_size)
ram_start = min(ram_start,bank_start);
ram_end = max(ram_end,bank_end);
- setup_xenheap_mappings(bank_start>>PAGE_SHIFT, bank_size>>PAGE_SHIFT);
-
s = bank_start;
while ( s < bank_end )
{
@@ -663,6 +661,8 @@ static void __init setup_mm(unsigned long dtb_paddr, size_t dtb_size)
dt_unreserved_regions(s, e, init_boot_pages, 0);
s = n;
}
+
+ setup_xenheap_mappings(bank_start>>PAGE_SHIFT, bank_size>>PAGE_SHIFT);
}
total_pages += ram_size >> PAGE_SHIFT;
--
2.6.2
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next reply other threads:[~2016-05-27 5:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-27 5:31 Peng Fan [this message]
2016-05-30 21:53 ` [PATCH] xen/arm: setup: initialize xenheap mappings after boot pages avaiable Julien Grall
2016-05-31 9:58 ` Peng Fan
2016-05-31 17:08 ` Julien Grall
2016-06-01 7:40 ` Peng Fan
2016-06-01 11:13 ` 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=1464327119-6242-1-git-send-email-van.freenix@gmail.com \
--to=van.freenix@gmail.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.