From: Christoph Egger Subject: [PATCH] xen: fix PCI passthrough for devices w/o iomem Date: Thu, 5 Feb 2009 13:46:33 +0100 Message-ID: <200902051346.33642.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_p+tiJk1ss6NvhD4" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_p+tiJk1ss6NvhD4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Keir, Some device have I/O space but no mem space so checking iomem to grant privileges to DomUs is not enough. Please apply this fix to unstable and xen-3.3-testing. From: Manuel Bouyer Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_p+tiJk1ss6NvhD4 Content-Type: text/x-diff; charset="us-ascii"; name="xen_iocap.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_iocap.diff" diff -r 8de0aae803e0 xen/include/asm-x86/iocap.h --- a/xen/include/asm-x86/iocap.h Fri Jan 23 12:50:14 2009 +0000 +++ b/xen/include/asm-x86/iocap.h Fri Jan 26 11:01:20 2009 +0100 @@ -15,6 +15,6 @@ rangeset_contains_range((d)->arch.ioport_caps, s, e) #define cache_flush_permitted(d) \ - (!rangeset_is_empty((d)->iomem_caps)) + (!rangeset_is_empty((d)->iomem_caps) || !rangeset_is_empty((d)->arch.ioport_caps)) #endif /* __X86_IOCAP_H__ */ diff -r 8de0aae803e0 xen/include/xen/iocap.h --- a/xen/include/xen/iocap.h Fri Jan 23 12:50:14 2009 +0000 +++ b/xen/include/xen/iocap.h Fri Jan 26 11:01:20 2009 +0100 @@ -29,6 +29,6 @@ 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__ */ --Boundary-00=_p+tiJk1ss6NvhD4 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_p+tiJk1ss6NvhD4--