]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: eliminate scalability issues from initial mapping setup
authorJuergen Gross <jgross@suse.com>
Fri, 17 Jul 2015 04:51:25 +0000 (06:51 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 11:43:23 +0000 (03:43 -0800)
commitee06d2c427cc4046f83bb23b385ddeeb5e517d15
tree4105464356a90acf8f92aeeac833228a13be61d0
parente155ffe241cb93ca3502cac40185bd951c638c09
xen: eliminate scalability issues from initial mapping setup

Direct Xen to place the initial P->M table outside of the initial
mapping, as otherwise the 1G (implementation) / 2G (theoretical)
restriction on the size of the initial mapping limits the amount
of memory a domain can be handed initially.

As the initial P->M table is copied rather early during boot to
domain private memory and it's initial virtual mapping is dropped,
the easiest way to avoid virtual address conflicts with other
addresses in the kernel is to use a user address area for the
virtual address of the initial P->M table. This allows us to just
throw away the page tables of the initial mapping after the copy
without having to care about address invalidation.

It should be noted that this patch won't enable a pv-domain to USE
more than 512 GB of RAM. It just enables it to be started with a
P->M table covering more memory. This is especially important for
being able to boot a Dom0 on a system with more than 512 GB memory.

Signed-off-by: Juergen Gross <jgross@suse.com>
Based-on-patch-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 8f5b0c63987207fd5c3c1f89c9eb6cb95b30386e)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit afafe7543e71733e5298cd86eb6242ed4aaf7a5d)
arch/x86/xen/mmu.c
arch/x86/xen/setup.c
arch/x86/xen/xen-head.S