summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorStefano Stabellini2012-11-17 04:39:05 +0100
committerH. Peter Anvin2012-11-17 20:59:28 +0100
commitddd3509df8f8d4f1cf4784f559d702ce00dc8846 (patch)
treeecbcc729cca0befbb5fba7a24f48b04e89c96ccb /arch/x86/mm
parentx86, mm: Add alloc_low_pages(num) (diff)
downloadkernel-qcow2-linux-ddd3509df8f8d4f1cf4784f559d702ce00dc8846.tar.gz
kernel-qcow2-linux-ddd3509df8f8d4f1cf4784f559d702ce00dc8846.tar.xz
kernel-qcow2-linux-ddd3509df8f8d4f1cf4784f559d702ce00dc8846.zip
x86, mm: Add pointer about Xen mmu requirement for alloc_low_pages
Add link for more information 279b706 x86,xen: introduce x86_init.mapping.pagetable_reserve -v2: updated to commets from hpa to include commit name. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Link: http://lkml.kernel.org/r/1353123563-3103-29-git-send-email-yinghai@kernel.org Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r--arch/x86/mm/init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index 02cea14c6d0c..cb4f8ba70ecc 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -25,6 +25,15 @@ unsigned long __meminitdata pgt_buf_top;
static unsigned long min_pfn_mapped;
+/*
+ * Pages returned are already directly mapped.
+ *
+ * Changing that is likely to break Xen, see commit:
+ *
+ * 279b706 x86,xen: introduce x86_init.mapping.pagetable_reserve
+ *
+ * for detailed information.
+ */
__ref void *alloc_low_pages(unsigned int num)
{
unsigned long pfn;