summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-11-16 19:39:05 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2012-11-17 11:59:28 -0800
commitddd3509df8f8d4f1cf4784f559d702ce00dc8846 (patch)
treeecbcc729cca0befbb5fba7a24f48b04e89c96ccb /arch/x86
parent22c8ca2ac256bb681be791858b35502b5d37e73b (diff)
downloadlinux-ddd3509df8f8d4f1cf4784f559d702ce00dc8846.tar.bz2
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')
-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;