ia64/xen-unstable

view xen/include/asm-ia64/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 f27787b9f8d7
children
line source
1 /******************************************************************************
2 * iocap.h
3 *
4 * Architecture-specific per-domain I/O capabilities.
5 */
7 #ifndef __IA64_IOCAP_H__
8 #define __IA64_IOCAP_H__
10 extern int ioports_permit_access(struct domain *d, unsigned int gs,
11 unsigned int s, unsigned int e);
12 extern int ioports_deny_access(struct domain *d,
13 unsigned int s, unsigned int e);
15 #define ioports_access_permitted(d, s, e) \
16 rangeset_contains_range((d)->arch.ioport_caps, s, e)
18 #define multipage_allocation_permitted(d, order) \
19 (((order) == 0) || \
20 !rangeset_is_empty((d)->iomem_caps) || \
21 !rangeset_is_empty((d)->arch.ioport_caps))
23 #endif /* __IA64_IOCAP_H__ */