xen-compat.h 958 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: MIT */
  2. /******************************************************************************
  3. * xen-compat.h
  4. *
  5. * Guest OS interface to Xen. Compatibility layer.
  6. *
  7. * Copyright (c) 2006, Christian Limpach
  8. */
  9. #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
  10. #define __XEN_PUBLIC_XEN_COMPAT_H__
  11. #define __XEN_LATEST_INTERFACE_VERSION__ 0x00040e00
  12. #if defined(__XEN__) || defined(__XEN_TOOLS__)
  13. /* Xen is built with matching headers and implements the latest interface. */
  14. #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
  15. #elif !defined(__XEN_INTERFACE_VERSION__)
  16. /* Guests which do not specify a version get the legacy interface. */
  17. #define __XEN_INTERFACE_VERSION__ 0x00000000
  18. #endif
  19. #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__
  20. #error "These header files do not support the requested interface version."
  21. #endif
  22. #define COMPAT_FLEX_ARRAY_DIM XEN_FLEX_ARRAY_DIM
  23. #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */