features.h 463 B

123456789101112131415161718192021222324
  1. /******************************************************************************
  2. * features.h
  3. *
  4. * Query the features reported by Xen.
  5. *
  6. * Copyright (c) 2006, Ian Campbell
  7. */
  8. #ifndef __XEN_FEATURES_H__
  9. #define __XEN_FEATURES_H__
  10. #include <xen/interface/features.h>
  11. void xen_setup_features(void);
  12. extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32];
  13. static inline int xen_feature(int flag)
  14. {
  15. return xen_features[flag];
  16. }
  17. #endif /* __ASM_XEN_FEATURES_H__ */