]> git.baikalelectronics.ru Git - kernel.git/commit
xen: add explicit memblock_reserve() calls for special pages
authorJuergen Gross <jgross@suse.com>
Fri, 17 Jul 2015 04:51:34 +0000 (06:51 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 20 Aug 2015 11:24:23 +0000 (12:24 +0100)
commit3eaee9c5ad2ea72eebbbad8faa0bece0d21f0dc0
tree6c7a0c1ac7f0c511c77adedc9e3311d64635c847
parentef8c1b60060ff4fdb7bd409c22e73daa2d74bcaf
xen: add explicit memblock_reserve() calls for special pages

Some special pages containing interfaces to xen are being reserved
implicitly only today. The memblock_reserve() call to reserve them is
meant to reserve the p2m list supplied by xen. It is just reserving
not only the p2m list itself, but some more pages up to the start of
the xen built page tables.

To be able to move the p2m list to another pfn range, which is needed
for support of huge RAM, this memblock_reserve() must be split up to
cover all affected reserved pages explicitly.

The affected pages are:
- start_info page
- xenstore ring (might be missing, mfn is 0 in this case)
- console ring (not for initial domain)

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/enlighten.c
arch/x86/xen/mmu.c
arch/x86/xen/xen-ops.h