[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] linux: force proper address translation in USB monitor



Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- head-2009-09-11.orig/drivers/usb/mon/mon_dma.c      2007-04-26 
05:08:32.000000000 +0200
+++ head-2009-09-11/drivers/usb/mon/mon_dma.c   2009-09-18 11:13:41.000000000 
+0200
@@ -19,7 +19,11 @@
 #if defined(__i386__) || defined(__x86_64__) /* CONFIG_ARCH_I386 doesn't exit 
*/
 #define MON_HAS_UNMAP 1
 
+#ifndef CONFIG_XEN
 #define phys_to_page(phys)     pfn_to_page((phys) >> PAGE_SHIFT)
+#else
+#define phys_to_page(phys)     pfn_to_page(mfn_to_local_pfn((phys) >> 
PAGE_SHIFT))
+#endif
 
 char mon_dmapeek(unsigned char *dst, dma_addr_t dma_addr, int len)
 {




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.