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] [xen-unstable] Fix PCI passthrough for devices w/o iomem

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix PCI passthrough for devices w/o iomem.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Feb 2009 01:35:21 -0800
Delivery-date: Tue, 10 Feb 2009 01:35:48 -0800
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 1233846533 0
# Node ID 92557a0b021fe02a69f6ce7fc5660d50b8f092c8
# Parent  a2a755b7927e61f2ebd25cb7c6071a8c8f71063d
Fix PCI passthrough for devices w/o iomem.

From: Manuel Bouyer <bouyer@xxxxxxxxxx>
Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 xen/include/asm-x86/iocap.h |    5 +++--
 xen/include/xen/iocap.h     |    3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff -r a2a755b7927e -r 92557a0b021f xen/include/asm-x86/iocap.h
--- a/xen/include/asm-x86/iocap.h       Thu Feb 05 12:20:18 2009 +0000
+++ b/xen/include/asm-x86/iocap.h       Thu Feb 05 15:08:53 2009 +0000
@@ -14,7 +14,8 @@
 #define ioports_access_permitted(d, s, e)               \
     rangeset_contains_range((d)->arch.ioport_caps, s, e)
 
-#define cache_flush_permitted(d)                       \
-    (!rangeset_is_empty((d)->iomem_caps))
+#define cache_flush_permitted(d)                        \
+    (!rangeset_is_empty((d)->iomem_caps) ||             \
+     !rangeset_is_empty((d)->arch.ioport_caps))
 
 #endif /* __X86_IOCAP_H__ */
diff -r a2a755b7927e -r 92557a0b021f xen/include/xen/iocap.h
--- a/xen/include/xen/iocap.h   Thu Feb 05 12:20:18 2009 +0000
+++ b/xen/include/xen/iocap.h   Thu Feb 05 15:08:53 2009 +0000
@@ -29,6 +29,7 @@
     rangeset_contains_singleton((d)->irq_caps, i)
 
 #define multipage_allocation_permitted(d)               \
-    (!rangeset_is_empty((d)->iomem_caps))
+    (!rangeset_is_empty((d)->iomem_caps) ||             \
+     !rangeset_is_empty((d)->arch.ioport_caps))
 
 #endif /* __XEN_IOCAP_H__ */

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix PCI passthrough for devices w/o iomem., Xen patchbot-unstable <=