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 HVMguests

To: "Ian Campbell" <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel][PATCH][RESEND] PV drivers for HVMguests
From: "Kasai Takanori" <kasai.takanori@xxxxxxxxxxxxxx>
Date: Thu, 2 Nov 2006 08:55:41 +0900
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 02 Nov 2006 13:40:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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><200610250311.k9P3BwF04686@xxxxxxxxxxxxxxxxxxxxxxxxxxx><1161774212.22514.86.camel@xxxxxxxxxxxxxxxxxxxxx><200610260013.k9Q0DuF16474@xxxxxxxxxxxxxxxxxxxxxxxxxxx><200610260358.k9Q3w4F20001@xxxxxxxxxxxxxxxxxxxxxxxxxxx><1161872106.22514.170.camel@xxxxxxxxxxxxxxxxxxxxx><00a201c6f96a$811feac0$dab2220a@VF03007L><1161943070.13318.53.camel@xxxxxxxxxxxxxxxxxxxxx> <03b301c6fa5a$8cc725a0$dab2220a@VF03007L>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Ian,

I confirmed this patch.
However, this patch has not been applied yet.

Do you think that this patch has another problem?
If this patch has no problem, could you apply this patch?

Thanks

--
Takanori Kasai


----- Original Message ----- From: "Kasai Takanori" <kasai.takanori@xxxxxxxxxxxxxx>
To: "Ian Campbell" <Ian.Campbell@xxxxxxxxxxxxx>
Cc: "xen-ia64-devel" <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Sent: Saturday, October 28, 2006 3:30 PM
Subject: [Xen-ia64-devel] Re: [Xen-devel][PATCH][RESEND] PV drivers for HVMguests


Hi Ian,

I've attached my current patch including the ptrace fix from above and
the comments from below. Can you give it a go?

I confirmed this patch. (cs:12004)
I tested compiling it and simple test on RHEL4U2 and RHEL4U4.

Thanks

--
Takanori Kasai


As follows:
------------
diff -r cf05aabe6e65 linux-2.6-xen-sparse/include/asm-ia64/hypercall.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h Wed Oct 25 15:29:00 2006 -0600 +++ b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h Sat Oct 28 13:30:39 2006 +0900
@@ -39,6 +39,10 @@

#include <asm/xen/xcom_hcall.h>
struct xencomm_handle;
+
+#ifdef HAVE_XEN_PLATFORM_COMPAT_H
+#include <xen/platform-compat.h>
+#endif

/*
 * Assembler stubs for hyper-calls.
diff -r cf05aabe6e65 linux-2.6-xen-sparse/include/asm-ia64/xen/xencomm.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/xen/xencomm.h Wed Oct 25 15:29:00 2006 -0600 +++ b/linux-2.6-xen-sparse/include/asm-ia64/xen/xencomm.h Sat Oct 28 13:42:40 2006 +0900
@@ -20,6 +20,10 @@
#define _LINUX_XENCOMM_H_

#include <xen/interface/xencomm.h>
+
+#ifdef HAVE_XEN_PLATFORM_COMPAT_H
+#include <xen/platform-compat.h>
+#endif

#define XENCOMM_MINI_ADDRS 3
struct xencomm_mini {
diff -r cf05aabe6e65 unmodified_drivers/linux-2.6/compat-include/asm-generic/pgtable-nopud.h --- a/unmodified_drivers/linux-2.6/compat-include/asm-generic/pgtable-nopud.h Wed Oct 25 15:29:00 2006 -0600 +++ b/unmodified_drivers/linux-2.6/compat-include/asm-generic/pgtable-nopud.h Sat Oct 28 12:50:07 2006 +0900
@@ -9,6 +9,7 @@
#define pud_offset(d, va)     d
#define pud_none(pud)         0
#define pud_present(pud)      1
+#define pud_bad(pud)          0
#define PTRS_PER_PUD          1

#endif /* _PGTABLE_NOPUD_H */
diff -r cf05aabe6e65 unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Wed Oct 25 15:29:00 2006 -0600 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Sat Oct 28 13:16:35 2006 +0900
@@ -25,6 +25,21 @@
#define NET_IP_ALIGN 0
#endif

+#if defined(_LINUX_ERR_H) && !defined(IS_ERR_VALUE)
+#define IS_ERR_VALUE(x) unlikely((x) > (unsigned long)-1000L)
+#endif
+
+#if defined(_ASM_IA64_PGTABLE_H) && !defined(_PGTABLE_NOPUD_H)
+#include <asm-generic/pgtable-nopud.h>
+#endif
+
+/* Some kernels have this typedef backported so we cannot reliably
+ * detect based on version number, hence we forcibly #define it.
+ */
+#if defined(__LINUX_TYPES_H) || defined(__LINUX_GFP_H)
+#define gfp_t unsigned
+#endif
+
#if defined(_LINUX_FS_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9)
#define nonseekable_open(inode, filp) /* Nothing to do */
#endif



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




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

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