xen/xu-11911-pv-hvm.diff

27 lines
866 B
Diff
Raw Normal View History

# HG changeset patch
# User Ian Campbell <ian.campbell@xensource.com>
# Date Wed Oct 25 13:58:30 2006 +0100
# 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@xensource.com>
--- 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