xen: fix PCI passthrough for devices w/o iomem
PATCH 1/1 xen: fix PCI passthrough for devices w/o iomem
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 <[email protected]>
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---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
xen/include/asm-x86/iocap.h +1 -1
@@ -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__ */
xen/include/xen/iocap.h +1 -1
@@ -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__ */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel