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

[Xen-changelog] [linux-2.6.18-xen] xen/usb: force proper address translation in USB monitor



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1253603047 -3600
# Node ID 1fcc9557d5ef55d03b128a04cab4bd7227413aa7
# Parent  eebccbc294dad786b2b14892bf1e60d0034f8f0d
xen/usb: force proper address translation in USB monitor

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/usb/mon/mon_dma.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r eebccbc294da -r 1fcc9557d5ef drivers/usb/mon/mon_dma.c
--- a/drivers/usb/mon/mon_dma.c Tue Sep 22 08:03:39 2009 +0100
+++ b/drivers/usb/mon/mon_dma.c Tue Sep 22 08:04:07 2009 +0100
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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