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

Xen Still hangs up when insmod xenbus.ko. Re: [Xen-devel] Unmodified_dri

To: "Ian Campbell" <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Xen Still hangs up when insmod xenbus.ko. Re: [Xen-devel] Unmodified_drivers modules broke again for 3.0.4?
From: "Liang Yang" <multisyncfe991@xxxxxxxxxxx>
Date: Mon, 8 Jan 2007 09:56:00 -0700
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 08 Jan 2007 08:55:48 -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: <C1C43CE1.72DC%keir@xxxxxxxxxxxxx><BAY125-DAV2B03BABB3A1F06475A97493BF0@xxxxxxx> <1168083889.4942.6.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Ian,

Now I can xen-platform-pci.ko can be loaded after building unmodified_drivers modules with the correct kernel header. Thanks for pointing out.

However, Xen still hangs up when I try load xenbus.ko module after xen-platform-pci.ko is loaded successfully. The problem remains the same even though I applied the patch you provided and using the latest xen-unstable.hg version.

Thanks,

Liang

----- Original Message ----- From: "Ian Campbell" <Ian.Campbell@xxxxxxxxxxxxx>
To: "Liang Yang" <multisyncfe991@xxxxxxxxxxx>
Cc: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>; "Keir Fraser" <keir@xxxxxxxxxxxxx>; <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Saturday, January 06, 2007 4:44 AM
Subject: Re: [Xen-devel] Unmodified_drivers modules broke again for 3.0.4?


On Fri, 2007-01-05 at 16:51 -0700, Liang Yang wrote:
Hi,

I tried to load unmodified_drivers modules for vbd device and got error when
doing insmod xen-platform-pci.ko in HVM Linux domain:
xen_platform_pci: disagrees about version of symbol struct_module
insmod: error inserting 'xen-platform-pci.ko' : -1 invalid module format.

I used the same kernel version for HVM Linux kernel and the kernel I was
building unmodified_drivers, i.e. they are both 2.6.16.33. I tested
xen-3.0.4-testing and xen-unstable, all got the same problem. Xen 3.0.2 with
2.6.16.29 kernel version still works fine.

Could anyone point out some links to fix this?

I needed the patch below when I tried the xen-unstable version
yesterday. I don't see how it can be related to the problem you are
seeing but with it they work fine for me on RHEL4 and SLES9. I didn't
try 2.6.16 but I will on Monday.

Are you sure you are building against the correct kernel headers for the
kernel you are running?

Ian.

diff -r d04ff58bbe18 unmodified_drivers/linux-2.6/platform-pci/evtchn.c
--- a/unmodified_drivers/linux-2.6/platform-pci/evtchn.c Fri Jan 05 10:40:19 2007 +0000 +++ b/unmodified_drivers/linux-2.6/platform-pci/evtchn.c Fri Jan 05 14:40:02 2007 +0000
@@ -48,6 +48,12 @@ static struct {
 void *dev_id;
 int close; /* close on unbind_from_irqhandler()? */
} evtchns[MAX_EVTCHN];
+
+int irq_to_evtchn_port(int irq)
+{
+        return irq;
+}
+EXPORT_SYMBOL_GPL(irq_to_evtchn_port);

void mask_evtchn(int port)
{



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



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

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