From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Liang Yang" Subject: Xen Still hangs up when insmod xenbus.ko. Re: Unmodified_drivers modules broke again for 3.0.4? Date: Mon, 8 Jan 2007 09:56:00 -0700 Message-ID: References: <1168083889.4942.6.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: xen-devel , Keir Fraser , xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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" To: "Liang Yang" Cc: "xen-devel" ; "Keir Fraser" ; 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@lists.xensource.com > http://lists.xensource.com/xen-devel >