summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorJulien Grall2015-09-09 16:17:33 +0200
committerDavid Vrabel2015-10-23 15:20:43 +0200
commit291be10fd7511101d44cf98166d049bd31bc7600 (patch)
tree668ca1a692248892515894661ed129ef44f82825 /arch/x86/include
parentarm/xen: Add support for 64KB page granularity (diff)
downloadkernel-qcow2-linux-291be10fd7511101d44cf98166d049bd31bc7600.tar.gz
kernel-qcow2-linux-291be10fd7511101d44cf98166d049bd31bc7600.tar.xz
kernel-qcow2-linux-291be10fd7511101d44cf98166d049bd31bc7600.zip
xen/swiotlb: Pass addresses rather than frame numbers to xen_arch_need_swiotlb
With 64KB page granularity support, the frame number will be different. It will be easier to modify the behavior in a single place rather than in each caller. 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/x86/include')
-rw-r--r--arch/x86/include/asm/xen/page.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/xen/page.h b/arch/x86/include/asm/xen/page.h
index fe58e3a935de..f5fb840b43e8 100644
--- a/arch/x86/include/asm/xen/page.h
+++ b/arch/x86/include/asm/xen/page.h
@@ -298,8 +298,8 @@ void make_lowmem_page_readwrite(void *vaddr);
#define xen_unmap(cookie) iounmap((cookie))
static inline bool xen_arch_need_swiotlb(struct device *dev,
- unsigned long pfn,
- unsigned long bfn)
+ phys_addr_t phys,
+ dma_addr_t dev_addr)
{
return false;
}