]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: split counting of extra memory pages from remapping
authorJuergen Gross <jgross@suse.com>
Fri, 17 Jul 2015 04:51:27 +0000 (06:51 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 Feb 2016 11:43:24 +0000 (03:43 -0800)
commit7b14f110c105fbe9714c7eafa098310c85abe8f5
tree5c62f4aa67c2de5b56ca4f753d95238e43cb51bd
parentd57448e9f098456ba246eb100921bc4f13d0318a
xen: split counting of extra memory pages from remapping

Memory pages in the initial memory setup done by the Xen hypervisor
conflicting with the target E820 map are remapped. In order to do this
those pages are counted and remapped in xen_set_identity_and_remap().

Split the counting from the remapping operation to be able to setup
the needed memory sizes in time but doing the remap operation at a
later time. This enables us to simplify the interface to
xen_set_identity_and_remap() as the number of remapped and released
pages is no longer needed here.

Finally move the remapping further down to prepare relocating
conflicting memory contents before the memory might be clobbered by
xen_set_identity_and_remap(). This requires to not destroy the Xen
E820 map when the one for the system is being constructed.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 5097cdf6cef15439f971df54f9abcf143d7ca698)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 033eda1444432958e750a02627e5c4b029032cf2)
arch/x86/xen/setup.c