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

[Xen-changelog] [xen-unstable] PV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Node ID 5d2f91f9b2f09fc57d24ef44f3ce31a4f0a9adfb
# Parent  f4b878188b5d521828d8120646ab1192ea5c8483
PV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior
to 2.6.7. These kernels did not export the system_state variable to
modules.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
---
 unmodified_drivers/linux-2.6/platform-pci/platform-compat.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r f4b878188b5d -r 5d2f91f9b2f0 
unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
--- a/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c       Wed Oct 
25 13:58:30 2006 +0100
+++ b/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c       Wed Oct 
25 13:58:30 2006 +0100
@@ -1,4 +1,11 @@
 #include <linux/config.h>
 #include <linux/version.h>
 
+#include <linux/module.h>
+
 #include <xen/platform-compat.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7)
+static int system_state = 1;
+EXPORT_SYMBOL(system_state);
+#endif

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.