]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 3 Jan 2014 19:57:11 +0000 (14:57 -0500)
commit4feee14b651d89a9f1a3bcdd916e581390f53f08
treef79acf7682b7902c6d1ea9782d362db55385ae70
parentf01a8c64469fa5c277f9174d1bf3ab1884614c28
xen/mmu/p2m: Refactor the xen_pagetable_init code (v2).

The revector 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