Merge to Fedora kernel-2.6.18-1.2224_FC5 patched with stable patch-2.6.18.1-vs2.0...
[linux-2.6.git] / include / xen / interface / xen-compat.h
1 /******************************************************************************
2  * xen-compat.h
3  * 
4  * Guest OS interface to Xen.  Compatibility layer.
5  * 
6  * Copyright (c) 2006, Christian Limpach
7  */
8
9 #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
10 #define __XEN_PUBLIC_XEN_COMPAT_H__
11
12 #define __XEN_LATEST_INTERFACE_VERSION__ 0x00030204
13
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
20 #endif
21
22 #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__
23 #error "These header files do not support the requested interface version."
24 #endif
25
26 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */