linux/arch/arm/include/asm/xen
Julien Grall 5192b35de4 arm/xen: implement correctly pfn_to_mfn
After the commit introducing convertion between DMA and guest addresses,
all the callers of pfn_to_mfn are expecting to get a GFN (Guest Frame
Number). On ARM, all the guests are auto-translated so the GFN is equal
to the Linux PFN (Pseudo-physical Frame Number).

The current implementation may return an MFN if the caller is passing a
PFN associated to a mapped foreign grant. In pratice, I haven't seen
the problem on running guest but we should fix it for the sake of
correctness.

Correct the implementation by always returning the pfn passed in parameter.

A follow-up patch will take care to rename pfn_to_mfn to a suitable
name.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2015-09-08 17:10:52 +01:00
..
events.h xen/events: Support event channel rebind on ARM 2015-08-20 12:24:15 +01:00
hypercall.h arm,arm64/xen: introduce HYPERVISOR_suspend() 2014-05-12 17:20:24 +01:00
hypervisor.h arm,arm64/xen: move Xen initialization earlier 2015-05-28 12:23:11 +01:00
interface.h arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
page-coherent.h xen/arm: use hypercall to flush caches in map_page 2014-12-04 12:41:52 +00:00
page.h arm/xen: implement correctly pfn_to_mfn 2015-09-08 17:10:52 +01:00