]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 4 Dec 2012 17:44:40 +0000 (12:44 -0500)
commitc6a731629bf2ce8d68fcdd0283b8a05b1277c732
treef110350d17ffc013915fb0c365da9a806f300eb5
parentf0caf0f934dc75ce35fb7272a76f8572a53caaae
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>
(cherry picked from commit ee7b5958e2494619ee3ff52de68580feed6906a2)
arch/arm/include/asm/xen/page.h