WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel][PATCH][RESEND] PV drivers for HVM guests

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel][PATCH][RESEND] PV drivers for HVM guests
From: Doi.Tsunehisa@xxxxxxxxxxxxxx
Date: Wed, 25 Oct 2006 12:11:58 +0900
Cc: Ky Srinivasan <ksrinivasan@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Doi.Tsunehisa@xxxxxxxxxxxxxx
Delivery-date: Tue, 24 Oct 2006 20:12:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: Your message of Wed, 25 Oct 2006 08:54:18 +0900. <200610242354.k9ONsIF02543@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4535F8F5.E57C.0030.0@xxxxxxxxxx> Your message of Wed, 18 Oct 2006 07:51:45 -0600. <4535F8F5.E57C.0030.0@xxxxxxxxxx> <200610182356.k9INuAF03840@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <45374AE9.E57C.0030.0@xxxxxxxxxx> Your message of Thu, 19 Oct 2006 07:53:42 -0600. <45374AE9.E57C.0030.0@xxxxxxxxxx> <200610201012.k9KACIF29714@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <45389CA5.E57C.0030.0@xxxxxxxxxx> <200610230145.k9N1jGF01307@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <453D8055.4030509@xxxxxxxxxxxxxx><1161703595.22514.59.camel@xxxxxxxxxxxxxxxxxxxxx><200610242354.k9ONsIF02543@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Ian,

I (Doi.Tsunehisa) said:
> You (Ian.Campbell) said:
>> OK, I'm boot testing on sles9sp3 and rhel4.4.

  I've met a compile error about gfp_t in rhel4.4. Thus, I avoided to meet
the compile error with preliminary patch like below.

Thanks,
- Tsunehisa Doi

  
diff -r 5b9bf5501157 -r 1b7b292278d0 
unmodified_drivers/linux-2.6/compat-include/compat.h
--- a/unmodified_drivers/linux-2.6/compat-include/compat.h      Tue Oct 24 
09:25:24 2006 +0900
+++ b/unmodified_drivers/linux-2.6/compat-include/compat.h      Tue Oct 24 
17:55:16 2006 +0900
@@ -31,7 +31,8 @@
 #define __sched
 #endif

-#if defined(_LINUX_TYPES_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
+#if defined(_LINUX_TYPES_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) \
+    && !defined(HAVE_GFP_T)
 typedef unsigned __nocast gfp_t;
 #endif

diff -r 5b9bf5501157 -r 1b7b292278d0 unmodified_drivers/linux-2.6/overrides.mk
--- a/unmodified_drivers/linux-2.6/overrides.mk Tue Oct 24 09:25:24 2006 +0900
+++ b/unmodified_drivers/linux-2.6/overrides.mk Tue Oct 24 17:55:16 2006 +0900
@@ -10,3 +10,6 @@ EXTRA_CFLAGS += -DCONFIG_XEN_NETDEV_GRAN
 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_COMPAT_H
+ifeq ($(KERNELRELEASE),2.6.9-42.EL) # for RHEL4 U4
+    EXTRA_CFLAGS += -DHAVE_GFP_T
+endif

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

<Prev in Thread] Current Thread [Next in Thread>