ia64/xen-unstable

view xen/include/asm-x86/iocap.h @ 19769:2d68d518038b

x86: Allow guests to allocate up to 2MB (superpage) memory extents.

Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 14:04:15 2009 +0100 (2009-06-16)
parents 92557a0b021f
children
line source
1 /******************************************************************************
2 * iocap.h
3 *
4 * Architecture-specific per-domain I/O capabilities.
5 */
7 #ifndef __X86_IOCAP_H__
8 #define __X86_IOCAP_H__
10 #define ioports_permit_access(d, s, e) \
11 rangeset_add_range((d)->arch.ioport_caps, s, e)
12 #define ioports_deny_access(d, s, e) \
13 rangeset_remove_range((d)->arch.ioport_caps, s, e)
14 #define ioports_access_permitted(d, s, e) \
15 rangeset_contains_range((d)->arch.ioport_caps, s, e)
17 #define cache_flush_permitted(d) \
18 (!rangeset_is_empty((d)->iomem_caps) || \
19 !rangeset_is_empty((d)->arch.ioport_caps))
21 #define multipage_allocation_permitted(d, order) \
22 (((order) <= 9) || /* allow 2MB superpages */ \
23 !rangeset_is_empty((d)->iomem_caps) || \
24 !rangeset_is_empty((d)->arch.ioport_caps))
26 #endif /* __X86_IOCAP_H__ */