xen: arm: make p2m operations NOPs
authorIan Campbell <ian.campbell@citrix.com>
Wed, 17 Oct 2012 08:39:17 +0000 (09:39 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Oct 2012 19:17:57 +0000 (15:17 -0400)
commitee7b5958e2494619ee3ff52de68580feed6906a2
tree03cd4017f59c48d2d33577d1d3ea60ad02518e7d
parentee678518eb386f513ac7fd374f7e8b8792ee79f8
xen: arm: make p2m operations NOPs

This makes common code less ifdef-y and is consistent with PVHVM on
x86.

Also note that phys_to_machine_mapping_valid should take a pfn
argument and make it do so.

Add __set_phys_to_machine, make set_phys_to_machine a simple wrapper
(on systems with non-nop implementations the outer one can allocate
new p2m pages).

Make __set_phys_to_machine check for identity mapping or invalid only.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/arm/include/asm/xen/page.h