|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Define __XEN_INTERFACE_VERSION__ when building Xen.
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID b524714dfb660e902bdab2fb6a241775b987296b
# Parent 60071beccf182e1f19e80c1a32af575d57fef1e2
Define __XEN_INTERFACE_VERSION__ when building Xen.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 60071beccf18 -r b524714dfb66 xen/include/public/xen-compat.h
--- a/xen/include/public/xen-compat.h Sat Apr 1 13:59:12 2006
+++ b/xen/include/public/xen-compat.h Sun Apr 2 08:48:04 2006
@@ -9,8 +9,18 @@
#ifndef __XEN_PUBLIC_XEN_COMPAT_H__
#define __XEN_PUBLIC_XEN_COMPAT_H__
-#ifndef __XEN_INTERFACE_VERSION__
+#define __XEN_LATEST_INTERFACE_VERSION__ 0x00030101
+
+#if defined(__XEN__)
+/* Xen is built with matching headers and implements the latest interface. */
+#define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
+#elif !defined(__XEN_INTERFACE_VERSION__)
+/* Guests which do not specify a version get the legacy interface. */
#define __XEN_INTERFACE_VERSION__ 0x00000000
+#endif
+
+#if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__
+#error "These header files do not support the requested interface version."
#endif
#if __XEN_INTERFACE_VERSION__ < 0x00030101
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Define __XEN_INTERFACE_VERSION__ when building Xen.,
Xen patchbot -unstable <=
|
|
|
|
|