xen/mmu/p2m: Refactor the xen_pagetable_init code (v2).
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 31 Dec 2013 17:37:52 +0000 (12:37 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:44:02 +0000 (10:44 -0500)
commit32df75cd148b43e007848ddbfdb1ea25535114cb
tree9c0154cf25df8736faa3c2315172a1258e18749e
parent696fd7c5b2ecb31b339019ced4fe15a3f9e7419a
xen/mmu/p2m: Refactor the xen_pagetable_init code (v2).

The revectoring and copying of the P2M only happens when
!auto-xlat and on 64-bit builds. It is not obvious from
the code, so lets have seperate 32 and 64-bit functions.

We also invert the check for auto-xlat to make the code
flow simpler.

Suggested-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c