Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / xen / interface / xen-compat.h
blob97fe6984989a63f753c13d46fa39804b130bfc6b
1 /* SPDX-License-Identifier: MIT */
2 /******************************************************************************
3 * xen-compat.h
5 * Guest OS interface to Xen. Compatibility layer.
7 * Copyright (c) 2006, Christian Limpach
8 */
10 #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
11 #define __XEN_PUBLIC_XEN_COMPAT_H__
13 #define __XEN_LATEST_INTERFACE_VERSION__ 0x00040e00
15 #if defined(__XEN__) || defined(__XEN_TOOLS__)
16 /* Xen is built with matching headers and implements the latest interface. */
17 #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
18 #elif !defined(__XEN_INTERFACE_VERSION__)
19 /* Guests which do not specify a version get the legacy interface. */
20 #define __XEN_INTERFACE_VERSION__ 0x00000000
21 #endif
23 #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__
24 #error "These header files do not support the requested interface version."
25 #endif
27 #define COMPAT_FLEX_ARRAY_DIM XEN_FLEX_ARRAY_DIM
29 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */