]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc12c483b9382ddb54f0a9b0f256efd1d0b04a151
tree03cd4017f59c48d2d33577d1d3ea60ad02518e7d
parent116ad25054d1df164d34d598355be712969894c9
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