]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/pvh: Implement MMU changes for PVH.
authorMukesh Rathor <mukesh.rathor@oracle.com>
Wed, 17 Oct 2012 20:37:49 +0000 (13:37 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 4 Mar 2013 15:36:31 +0000 (10:36 -0500)
commit87546f0e5827741c0223c99153e58f4be1ae1b59
tree9798ab387cb7f84e9499c21a904d5b432c1a8947
parent23b0133ec3f56694af06100296c3032b046a6894
xen/pvh: Implement MMU changes for PVH.

.. which are surprinsingly small compared to the amount for PV.
First the set/clear mmio pte function make a hypercall to update the
P2M in Xen with 1:1 mapping. Since PVH uses mostly native mmu ops, we
leave the generic (native_*) for the majority and just overwrite the
baremetal with the ones we need.

Two local functions are introduced to add to Xen physmap for Xen remap
interface. Xen unmap interface is introduced so that the privcmd PTe entries
can be cleared in Xen P2M table.

ijc -- rebase on top of ARM privcmd changes rather than vice versa,
xen_remap_domain_mfn_range (and unmap) split into a separate patch
earlier in the series.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[v1: Rebase on x86, mm, Xen: Remove mapping_pagetable_reserve()]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c
arch/x86/xen/mmu.h