features.h 502 B

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