diff options
author | Julien Grall <julien.grall@citrix.com> | 2015-08-07 18:34:36 +0200 |
---|---|---|
committer | Julien Grall <julien.grall@citrix.com> | 2015-09-08 18:10:52 +0200 |
commit | 5192b35de47e47a0f736fe30da199f32030680e7 (patch) | |
tree | 1b7f799b24287918897fe0c724a857f57346d241 /arch/arm/oprofile | |
parent | xen: Make clear that swiotlb and biomerge are dealing with DMA address (diff) | |
download | linux-5192b35de47e47a0f736fe30da199f32030680e7.tar.xz linux-5192b35de47e47a0f736fe30da199f32030680e7.zip |
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>
Diffstat (limited to 'arch/arm/oprofile')
0 files changed, 0 insertions, 0 deletions