ia64/xen-unstable

changeset 19175:92557a0b021f

Fix PCI passthrough for devices w/o iomem.

From: Manuel Bouyer <bouyer@netbsd.org>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 05 15:08:53 2009 +0000 (2009-02-05)
parents a2a755b7927e
children 191643d4307c
files xen/include/asm-x86/iocap.h xen/include/xen/iocap.h
line diff
     1.1 --- a/xen/include/asm-x86/iocap.h	Thu Feb 05 12:20:18 2009 +0000
     1.2 +++ b/xen/include/asm-x86/iocap.h	Thu Feb 05 15:08:53 2009 +0000
     1.3 @@ -14,7 +14,8 @@
     1.4  #define ioports_access_permitted(d, s, e)               \
     1.5      rangeset_contains_range((d)->arch.ioport_caps, s, e)
     1.6  
     1.7 -#define cache_flush_permitted(d)                       \
     1.8 -    (!rangeset_is_empty((d)->iomem_caps))
     1.9 +#define cache_flush_permitted(d)                        \
    1.10 +    (!rangeset_is_empty((d)->iomem_caps) ||             \
    1.11 +     !rangeset_is_empty((d)->arch.ioport_caps))
    1.12  
    1.13  #endif /* __X86_IOCAP_H__ */
     2.1 --- a/xen/include/xen/iocap.h	Thu Feb 05 12:20:18 2009 +0000
     2.2 +++ b/xen/include/xen/iocap.h	Thu Feb 05 15:08:53 2009 +0000
     2.3 @@ -29,6 +29,7 @@
     2.4      rangeset_contains_singleton((d)->irq_caps, i)
     2.5  
     2.6  #define multipage_allocation_permitted(d)               \
     2.7 -    (!rangeset_is_empty((d)->iomem_caps))
     2.8 +    (!rangeset_is_empty((d)->iomem_caps) ||             \
     2.9 +     !rangeset_is_empty((d)->arch.ioport_caps))
    2.10  
    2.11  #endif /* __XEN_IOCAP_H__ */