102 lines
4.5 KiB
Diff
102 lines
4.5 KiB
Diff
|
Index: 2007-01-19/unmodified_drivers/linux-2.6/mkbuildtree
|
||
|
===================================================================
|
||
|
--- 2007-01-19.orig/unmodified_drivers/linux-2.6/mkbuildtree 2006-12-14 22:49:58.000000000 +0100
|
||
|
+++ 2007-01-19/unmodified_drivers/linux-2.6/mkbuildtree 2007-01-24 14:48:33.000000000 +0100
|
||
|
@@ -8,10 +8,12 @@ else
|
||
|
echo "This may be overridden on the command line (i386,x86_64,ia64)."
|
||
|
fi
|
||
|
|
||
|
-C=$PWD
|
||
|
-
|
||
|
-XEN=$C/../../xen
|
||
|
-XL=$C/../../linux-2.6-xen-sparse
|
||
|
+if [ -n "$XL" -a -d "$XL" ]; then
|
||
|
+ XL=$(cd $XL && pwd)
|
||
|
+else
|
||
|
+ XL=/usr/src/linux
|
||
|
+fi
|
||
|
+cd "$(dirname "$0")"
|
||
|
|
||
|
for d in $(find ${XL}/drivers/xen/ -maxdepth 1 -type d | sed -e 1d); do
|
||
|
if ! echo $d | egrep -q back; then
|
||
|
@@ -24,14 +26,9 @@ ln -sf ${XL}/drivers/xen/core/features.c
|
||
|
ln -sf ${XL}/drivers/xen/core/xen_proc.c xenbus
|
||
|
ln -sf ${XL}/drivers/xen/core/reboot.c util
|
||
|
|
||
|
-mkdir -p include
|
||
|
-mkdir -p include/xen
|
||
|
-mkdir -p include/public
|
||
|
-mkdir -p include/asm
|
||
|
-mkdir -p include/asm/xen
|
||
|
+mkdir -p include/asm include/xen
|
||
|
|
||
|
lndir -silent ${XL}/include/xen include/xen
|
||
|
-ln -nsf ${XEN}/include/public include/xen/interface
|
||
|
|
||
|
# Need to be quite careful here: we don't want the files we link in to
|
||
|
# risk overriding the native Linux ones (in particular, system.h must
|
||
|
@@ -43,7 +40,8 @@ in
|
||
|
ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/hypercall.h include/asm
|
||
|
ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/synch_bitops.h include/asm
|
||
|
ln -sf ${XL}/include/asm-x86_64/mach-xen/asm/maddr.h include/asm
|
||
|
- ln -sf ${XL}/include/asm-i386 include/asm-i386
|
||
|
+ mkdir include/asm-i386
|
||
|
+ lndir -silent ${XL}/include/asm-i386 include/asm-i386
|
||
|
;;
|
||
|
i[34567]86)
|
||
|
ln -sf ${XL}/include/asm-i386/mach-xen/asm/hypervisor.h include/asm
|
||
|
@@ -56,6 +54,7 @@ i[34567]86)
|
||
|
ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
|
||
|
ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
|
||
|
ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
|
||
|
+ mkdir include/asm/xen
|
||
|
ln -sf ${XL}/include/asm-ia64/xen/xcom_hcall.h include/asm/xen
|
||
|
ln -sf ${XL}/include/asm-ia64/xen/xencomm.h include/asm/xen
|
||
|
ln -sf ${XL}/arch/ia64/xen/xcom_mini.c platform-pci
|
||
|
Index: 2007-01-19/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
|
||
|
===================================================================
|
||
|
--- 2007-01-19.orig/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h 2006-12-14 22:49:58.000000000 +0100
|
||
|
+++ 2007-01-19/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h 2007-01-26 10:44:53.000000000 +0100
|
||
|
@@ -69,4 +69,12 @@ extern char *kasprintf(gfp_t gfp, const
|
||
|
__attribute__ ((format (printf, 2, 3)));
|
||
|
#endif
|
||
|
|
||
|
+/*
|
||
|
+ * This variable at present is referenced by netfront, but only in code that
|
||
|
+ * is dead when running in hvm guests. To detect potential active uses of it
|
||
|
+ * in the future, don't try to supply a 'valid' value here, so that any
|
||
|
+ * mappings created with it will fault when accessed.
|
||
|
+ */
|
||
|
+#define __supported_pte_mask ((maddr_t)0)
|
||
|
+
|
||
|
#endif
|
||
|
Index: 2007-01-19/unmodified_drivers/linux-2.6/overrides.mk
|
||
|
===================================================================
|
||
|
--- 2007-01-19.orig/unmodified_drivers/linux-2.6/overrides.mk 2006-12-14 22:49:58.000000000 +0100
|
||
|
+++ 2007-01-19/unmodified_drivers/linux-2.6/overrides.mk 2007-01-23 13:19:27.000000000 +0100
|
||
|
@@ -4,9 +4,5 @@
|
||
|
#
|
||
|
# (i.e. we need the native config for things like -mregparm, but
|
||
|
# a Xen kernel to find the right headers)
|
||
|
-EXTRA_CFLAGS += -DCONFIG_VMX -DCONFIG_VMX_GUEST -DCONFIG_X86_XEN
|
||
|
-EXTRA_CFLAGS += -DCONFIG_XEN_SHADOW_MODE -DCONFIG_XEN_SHADOW_TRANSLATE
|
||
|
-EXTRA_CFLAGS += -DCONFIG_XEN_BLKDEV_GRANT -DXEN_EVTCHN_MASK_OPS
|
||
|
-EXTRA_CFLAGS += -DCONFIG_XEN_NETDEV_GRANT_RX -DCONFIG_XEN_NETDEV_GRANT_TX
|
||
|
EXTRA_CFLAGS += -D__XEN_INTERFACE_VERSION__=0x00030202
|
||
|
EXTRA_CFLAGS += -I$(M)/include -I$(M)/compat-include -DHAVE_XEN_PLATFORM_COMPAT_H
|
||
|
Index: 2007-01-19/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c
|
||
|
===================================================================
|
||
|
--- 2007-01-19.orig/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c 2006-12-14 22:49:58.000000000 +0100
|
||
|
+++ 2007-01-19/unmodified_drivers/linux-2.6/platform-pci/platform-compat.c 2007-01-23 12:54:45.000000000 +0100
|
||
|
@@ -115,7 +115,9 @@ void *kzalloc(size_t size, int flags)
|
||
|
EXPORT_SYMBOL(kzalloc);
|
||
|
#endif
|
||
|
|
||
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
|
||
|
+#if defined(CONFIG_SUSE_KERNEL) \
|
||
|
+ ? LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) \
|
||
|
+ : LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
|
||
|
/* Simplified asprintf. */
|
||
|
char *kasprintf(gfp_t gfp, const char *fmt, ...)
|
||
|
{
|