1 /******************************************************************************
4 * Guest OS interface to Xen. Compatibility layer.
6 * Copyright (c) 2006, Christian Limpach
9 #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
10 #define __XEN_PUBLIC_XEN_COMPAT_H__
12 #define __XEN_LATEST_INTERFACE_VERSION__ 0x00030204
14 #if defined(__XEN__) || defined(__XEN_TOOLS__)
15 /* Xen is built with matching headers and implements the latest interface. */
16 #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
17 #elif !defined(__XEN_INTERFACE_VERSION__)
18 /* Guests which do not specify a version get the legacy interface. */
19 #define __XEN_INTERFACE_VERSION__ 0x00000000
22 #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__
23 #error "These header files do not support the requested interface version."
26 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */