]> 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, 29 Oct 2012 14:10:44 +0000 (10:10 -0400)
commitde81067d4ef5b434b47f63e11448b3b09cfc0b5e
tree21abc066e85038d864447d99658e43f56ab9419d
parent6c6067f2638835b22ddde4eaef278bb2c096a08b
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.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c
arch/x86/xen/mmu.h
drivers/xen/privcmd.c
include/xen/xen-ops.h