WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] xen/usb: force proper address transla

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xen/usb: force proper address translation in USB monitor
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Sep 2009 01:25:39 -0700
Delivery-date: Tue, 22 Sep 2009 01:27:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xen/usb: force proper address translation in USB monitor, Xen patchbot-linux-2.6.18-xen <=