diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2014-11-11 14:31:56 +0000 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-12-04 12:41:48 +0000 |
commit | 2f91fc331ad495a3e602f3d0e7fd6211b1d91204 (patch) | |
tree | 9b72ca8a9588b42f947afcb603a6dab55c2d0df5 /arch/arm64 | |
parent | 35e0be88c426e8d2d6a4ed91d80ea25d73d127aa (diff) | |
download | lwn-2f91fc331ad495a3e602f3d0e7fd6211b1d91204.tar.gz lwn-2f91fc331ad495a3e602f3d0e7fd6211b1d91204.zip |
xen/arm: if(pfn_valid(pfn)) call native dma_ops
Remove code duplication in mm32.c by calling the native dma_ops if the
page is a local page (not a foreign page). Use a simple pfn_valid(pfn)
check to figure out if the page is local, exploiting the fact that dom0
is mapped 1:1, therefore pfn_valid always returns false when called on a
foreign mfn.
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
0 files changed, 0 insertions, 0 deletions