diff options
Diffstat (limited to 'kernel/include/xen/features.h')
-rw-r--r-- | kernel/include/xen/features.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/include/xen/features.h b/kernel/include/xen/features.h new file mode 100644 index 000000000..27292d4d2 --- /dev/null +++ b/kernel/include/xen/features.h @@ -0,0 +1,23 @@ +/****************************************************************************** + * features.h + * + * Query the features reported by Xen. + * + * Copyright (c) 2006, Ian Campbell + */ + +#ifndef __XEN_FEATURES_H__ +#define __XEN_FEATURES_H__ + +#include <xen/interface/features.h> + +void xen_setup_features(void); + +extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32]; + +static inline int xen_feature(int flag) +{ + return xen_features[flag]; +} + +#endif /* __ASM_XEN_FEATURES_H__ */ |