[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: [PATCH] Fix __XEN_INTERFACE_VERSION__ old config breakage


On 4/4/06, Magnus Damm <magnus@xxxxxxxxxxxxx> wrote:
> Fix __XEN_INTERFACE_VERSION__ old config breakage
>
> For old kernel configurations that lack CONFIG_XEN_INTERFACE_VERSION,
> __XEN_INTERFACE_VERSION__ will currently be defined but set to nothing.

I've checked in a change to xen-compat.h which handles this case.

    christian
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Date Thu Apr  6 23:32:54 2006
# Node ID 0010df11836d182fbb00ebcc016e9e51705470e0
# parent: b6c5920e5d998d8055a8b2f540462ace3e860d99
Support __XEN_INTERFACE_VERSION__ defined to the empty string.
This can happen when building Linux with an old .config file which
doesn't have a value for CONFIG_XEN_INTERFACE_VERSION.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>


--- a/xen/include/public/xen-compat.h	Thu Apr  6 17:58:39 2006
+++ b/xen/include/public/xen-compat.h	Thu Apr  6 23:32:54 2006
@@ -14,8 +14,11 @@
 #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__)
+#elif (__XEN_INTERFACE_VERSION__ - 0) == 0
 /* Guests which do not specify a version get the legacy interface. */
+#ifdef __XEN_INTERFACE_VERSION__
+#undef __XEN_INTERFACE_VERSION__
+#endif
 #define __XEN_INTERFACE_VERSION__ 0x00000000
 #endif
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


This mailing list archive is a service of Copilotco.