From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Srujan D. Kotikela" Subject: Error while binding VIRQ to IRQ_HANDLER Date: Tue, 9 Nov 2010 10:43:46 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0139998703==" 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0139998703== Content-Type: multipart/alternative; boundary=0015174c36c4cdb1ba0494a1716a --0015174c36c4cdb1ba0494a1716a Content-Type: text/plain; charset=ISO-8859-1 Hi, I wrote a kernel module for handling a custom VIRQ. It is *compiling* fine, but when I try to do *modprobe * it's giving me the following error: FATAL: Error inserting vbase (/lib/modules/ > 2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown symbol in module, or > unknown parameter (see dmesg) The output of dmesg is as follows: vbase: Unknown symbol bind_virq_to_irqhandler The module code is as follows: static irqreturn_t vbase_handler (int irq, void *dummy, struct pt_regs > *regs) { printk("\nVBASE: XEN Notification Received"); return IRQ_HANDLED; } > int init_module(void) { int err; > printk("\nVBASE: vbase_test module called"); > /* * * Bind the VIRQ_VBASE to an IRQ handler * parameters for the following function are: * VIRQ, CPU#, IRQ_HANDLER, IRQ_FLAGS, DEV_NAME, DEV_ID **/ err = bind_virq_to_irqhandler(11, 0, vbase_handler, 0, "VBASE", > NULL); > if (err < 0){ printk("\nVBASE: Could not bind VIRQ<->IRQ_HANDLER"); } > return 0; } > void cleanup_module(void) { printk("\nVBASE: vbase_test module cleaned up"); > return; } -- Srujan D. Kotikela --0015174c36c4cdb1ba0494a1716a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I wrote a kernel module for handling a custom VIRQ. = It is compiling fine, but when I try to do modprobe = =A0it's giving me the following error:



=A0
static irqreturn_t vbase_handler (int irq, void *dummy, struct pt_regs *reg= s)
{
=A0=A0 =A0 =A0 =A0printk("\nVBASE: XEN Notification Received");
=A0=A0 =A0 =A0 =A0return IRQ_HANDLED;
}

int init_module(void)
{
=A0=A0 =A0 =A0 =A0int err;

=A0=A0 =A0 =A0 =A0printk("\nVBASE: vbase_test module called");

=A0=A0 =A0 =A0 =A0/* *
* Bind th= e VIRQ_VBASE to an IRQ handler
=A0=A0 =A0 =A0 =A0 * parameters for the following function are:
=A0=A0 =A0 =A0 =A0 * VIRQ, CPU#, IRQ_HANDLER, IRQ_FLAGS, DEV_NAME, DEV_ID
=A0=A0 =A0 =A0 =A0 **/
=A0=A0 =A0 =A0 =A0err =3D bind_virq_to_irqhandler(11, 0, vbase_handler, 0, = "VBASE", NULL);

=A0=A0 =A0 =A0 =A0if (err < 0){
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0printk("\nVBASE: Could not bind VIRQ= <->IRQ_HANDLER");
=A0=A0 =A0 =A0 =A0}

=A0=A0 =A0 =A0 =A0return 0;
}

void cleanup_module(void)
{
=A0=A0 =A0 =A0 =A0printk("\nVBASE: vbase_test module cleaned up")= ;

=A0=A0 =A0 =A0 =A0return;
}



--
Srujan D. = Kotikela
--0015174c36c4cdb1ba0494a1716a-- --===============0139998703== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0139998703==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Error while binding VIRQ to IRQ_HANDLER Date: Wed, 10 Nov 2010 09:14:25 -0500 Message-ID: <20101110141425.GA16120@dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Srujan D. Kotikela" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Kotikela wrote: > Hi, > > I wrote a kernel module for handling a custom VIRQ. It is *compiling* fine, > but when I try to do *modprobe * it's giving me the following error: > > FATAL: Error inserting vbase (/lib/modules/ > > 2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown symbol in module, or > > unknown parameter (see dmesg) > > > The output of dmesg is as follows: > > vbase: Unknown symbol bind_virq_to_irqhandler You will to tweak your Linux kernel source to have 'EXPORT_SYMBOL_GPL' around that function and recompile your kernel. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Srujan D. Kotikela" Subject: Re: Error while binding VIRQ to IRQ_HANDLER Date: Wed, 10 Nov 2010 10:02:55 -0600 Message-ID: References: <20101110141425.GA16120@dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0577773715==" Return-path: In-Reply-To: <20101110141425.GA16120@dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============0577773715== Content-Type: multipart/alternative; boundary=0015174c13c68afdf70494b4fd0e --0015174c13c68afdf70494b4fd0e Content-Type: text/plain; charset=ISO-8859-1 hi, I already have the following: EXPORT_SYMBOL_GPL(bind_virq_to_irqhandler); in my evtchn.c file. -- Srujan D. Kotikela On Wed, Nov 10, 2010 at 8:14 AM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote: > On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Kotikela wrote: > > Hi, > > > > I wrote a kernel module for handling a custom VIRQ. It is *compiling* > fine, > > but when I try to do *modprobe * it's giving me the following error: > > > > FATAL: Error inserting vbase (/lib/modules/ > > > 2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown symbol in module, > or > > > unknown parameter (see dmesg) > > > > > > The output of dmesg is as follows: > > > > vbase: Unknown symbol bind_virq_to_irqhandler > > You will to tweak your Linux kernel source to have 'EXPORT_SYMBOL_GPL' > around > that function and recompile your kernel. > --0015174c13c68afdf70494b4fd0e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hi,

I already have=A0the following:

=
EXPORT_SYMBOL_GPL(bind_virq_to_irqhandler);

<= div>in my evtchn.c file.

--
Srujan D. Kotikela


On Wed, Nov 10, 2010 at 8:14 AM, Konrad = Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Kotik= ela wrote:
> Hi,
>
> I wrote a kernel module for handling a custom VIRQ. It is *compiling* = fine,
> but when I try to do *modprobe * it's giving me the following erro= r:
>
> FATAL: Error inserting vbase (/lib/modules/
> > 2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown sym= bol in module, or
> > unknown parameter (see dmesg)
>
>
> The output of dmesg is as follows:
>
> vbase: Unknown symbol bind_virq_to_irqhandler

You will to tweak your Linux kernel source to have 'EXPORT_SYMBOL= _GPL' around
that function and recompile your kernel.

--0015174c13c68afdf70494b4fd0e-- --===============0577773715== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0577773715==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: Error while binding VIRQ to IRQ_HANDLER Date: Wed, 10 Nov 2010 16:13:35 +0000 Message-ID: <1289405615.724.55.camel@zakaz.uk.xensource.com> References: <20101110141425.GA16120@dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Srujan D. Kotikela" Cc: "xen-devel@lists.xensource.com" , Rzeszutek Wilk , Konrad List-Id: xen-devel@lists.xenproject.org On Wed, 2010-11-10 at 16:02 +0000, Srujan D. Kotikela wrote: > hi, > > > I already have the following: > > > EXPORT_SYMBOL_GPL(bind_virq_to_irqhandler); You probably also need MODULE_LICENSE("GPL") in your module. Ian. > > > in my evtchn.c file. > > > -- > Srujan D. Kotikela > > > On Wed, Nov 10, 2010 at 8:14 AM, Konrad Rzeszutek Wilk > wrote: > On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Kotikela > wrote: > > Hi, > > > > I wrote a kernel module for handling a custom VIRQ. It is > *compiling* fine, > > but when I try to do *modprobe * it's giving me the > following error: > > > > FATAL: Error inserting vbase (/lib/modules/ > > > 2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown > symbol in module, or > > > unknown parameter (see dmesg) > > > > > > The output of dmesg is as follows: > > > > vbase: Unknown symbol bind_virq_to_irqhandler > > > You will to tweak your Linux kernel source to have > 'EXPORT_SYMBOL_GPL' around > that function and recompile your kernel. > > From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Srujan D. Kotikela" Subject: Re: Error while binding VIRQ to IRQ_HANDLER Date: Wed, 10 Nov 2010 12:41:25 -0600 Message-ID: References: <20101110141425.GA16120@dumpdata.com> <1289405615.724.55.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1917908650==" Return-path: In-Reply-To: <1289405615.724.55.camel@zakaz.uk.xensource.com> 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@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============1917908650== Content-Type: multipart/alternative; boundary=0015174c13106746710494b73418 --0015174c13106746710494b73418 Content-Type: text/plain; charset=ISO-8859-1 Hi Ian, That fixed the problem. But it's not handling the VIRQ. I am passing the VIRQ as follows in "xen" send_guest_global_virq(dom0, 11); -- Srujan D. Kotikela On Wed, Nov 10, 2010 at 10:13 AM, Ian Campbell wrote: > On Wed, 2010-11-10 at 16:02 +0000, Srujan D. Kotikela wrote: > > hi, > > > > > > I already have the following: > > > > > > EXPORT_SYMBOL_GPL(bind_virq_to_irqhandler); > > You probably also need MODULE_LICENSE("GPL") in your module. > > Ian. > > > > > > > in my evtchn.c file. > > > > > > -- > > Srujan D. Kotikela > > > > > > On Wed, Nov 10, 2010 at 8:14 AM, Konrad Rzeszutek Wilk > > wrote: > > On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Kotikela > > wrote: > > > Hi, > > > > > > I wrote a kernel module for handling a custom VIRQ. It is > > *compiling* fine, > > > but when I try to do *modprobe * it's giving me the > > following error: > > > > > > FATAL: Error inserting vbase (/lib/modules/ > > > > 2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown > > symbol in module, or > > > > unknown parameter (see dmesg) > > > > > > > > > The output of dmesg is as follows: > > > > > > vbase: Unknown symbol bind_virq_to_irqhandler > > > > > > You will to tweak your Linux kernel source to have > > 'EXPORT_SYMBOL_GPL' around > > that function and recompile your kernel. > > > > > > > --0015174c13106746710494b73418 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ian,

That fixed the problem. But it's not handlin= g the VIRQ. I am passing the VIRQ as follows in "xen"
<= br>
send_guest_global_virq(dom0, 11);

--
Srujan D. Kotikela


On Wed, Nov 10, 2010 at 10:13 AM, Ian Ca= mpbell <Ian= .Campbell@citrix.com> wrote:
On Wed, 2010-11-10 at 16:02 +0000, Srujan D. Kotikela wro= te:
> hi,
>
>
> I already have the following:
>
>
> EXPORT_SYMBOL_GPL(bind_virq_to_irqhandler);

You probably also need MODULE_LICENSE("GPL") in your module= .

Ian.

>
>
> in my evtchn.c file.
>
>
> --
> Srujan D. Kotikela
>
>
> On Wed, Nov 10, 2010 at 8:14 AM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> =A0 =A0 =A0 =A0 On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Ko= tikela
> =A0 =A0 =A0 =A0 wrote:
> =A0 =A0 =A0 =A0 > Hi,
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > I wrote a kernel module for handling a custom VIR= Q. It is
> =A0 =A0 =A0 =A0 *compiling* fine,
> =A0 =A0 =A0 =A0 > but when I try to do *modprobe * it's giving = me the
> =A0 =A0 =A0 =A0 following error:
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > FATAL: Error inserting vbase (/lib/modules/
> =A0 =A0 =A0 =A0 > >
2.6.18.8/kernel/drivers/xen/vbase/vbase= .ko): Unknown
> =A0 =A0 =A0 =A0 symbol in module, or
> =A0 =A0 =A0 =A0 > > unknown parameter (see dmesg)
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > The output of dmesg is as follows:
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > vbase: Unknown symbol bind_virq_to_irqhandler
>
>
> =A0 =A0 =A0 =A0 You will to tweak your Linux kernel source to have
> =A0 =A0 =A0 =A0 'EXPORT_SYMBOL_GPL' around
> =A0 =A0 =A0 =A0 that function and recompile your kernel.
>
>



--0015174c13106746710494b73418-- --===============1917908650== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1917908650==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Srujan D. Kotikela" Subject: Re: Error while binding VIRQ to IRQ_HANDLER Date: Wed, 10 Nov 2010 13:28:27 -0600 Message-ID: References: <20101110141425.GA16120@dumpdata.com> <1289405615.724.55.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0371631153==" Return-path: In-Reply-To: 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@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============0371631153== Content-Type: multipart/alternative; boundary=000e0cd1f99c96e1bd0494b7dcfd --000e0cd1f99c96e1bd0494b7dcfd Content-Type: text/plain; charset=ISO-8859-1 Hi, I got the problem fixed. Can I pass some information (an integer value) to Dom0 along with the VIRQ. -- Srujan D. Kotikela On Wed, Nov 10, 2010 at 12:41 PM, Srujan D. Kotikela wrote: > Hi Ian, > > That fixed the problem. But it's not handling the VIRQ. I am passing the > VIRQ as follows in "xen" > > send_guest_global_virq(dom0, 11); > > -- > Srujan D. Kotikela > > > > On Wed, Nov 10, 2010 at 10:13 AM, Ian Campbell wrote: > >> On Wed, 2010-11-10 at 16:02 +0000, Srujan D. Kotikela wrote: >> > hi, >> > >> > >> > I already have the following: >> > >> > >> > EXPORT_SYMBOL_GPL(bind_virq_to_irqhandler); >> >> You probably also need MODULE_LICENSE("GPL") in your module. >> >> Ian. >> >> > >> > >> > in my evtchn.c file. >> > >> > >> > -- >> > Srujan D. Kotikela >> > >> > >> > On Wed, Nov 10, 2010 at 8:14 AM, Konrad Rzeszutek Wilk >> > wrote: >> > On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Kotikela >> > wrote: >> > > Hi, >> > > >> > > I wrote a kernel module for handling a custom VIRQ. It is >> > *compiling* fine, >> > > but when I try to do *modprobe * it's giving me the >> > following error: >> > > >> > > FATAL: Error inserting vbase (/lib/modules/ >> > > > 2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown >> > symbol in module, or >> > > > unknown parameter (see dmesg) >> > > >> > > >> > > The output of dmesg is as follows: >> > > >> > > vbase: Unknown symbol bind_virq_to_irqhandler >> > >> > >> > You will to tweak your Linux kernel source to have >> > 'EXPORT_SYMBOL_GPL' around >> > that function and recompile your kernel. >> > >> > >> >> >> > --000e0cd1f99c96e1bd0494b7dcfd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I got the problem fixed.=A0

Can I pass some information (an integer value) to Dom0 along with the VIRQ= .=A0

--
Srujan D. Kotikela


On Wed, Nov 10, 2010 at 12:41 PM, Srujan= D. Kotikela <= ksrujandas@gmail.com> wrote:
Hi Ian,

That fixed the problem. But it's not handlin= g the VIRQ. I am passing the VIRQ as follows in "xen"
<= br>
send_guest_global_virq(dom0, 11);

--
Srujan D. Kotikela



On Wed, Nov 10, 2010 at 10:13 AM, Ian Ca= mpbell <Ian.Campbell@citrix.com> wrote:
On Wed, 2010-11-10 at 16:02 +0000, Srujan D. Kotikela wrote:
> hi,
>
>
> I already have the following:
>
>
> EXPORT_SYMBOL_GPL(bind_virq_to_irqhandler);

You probably also need MODULE_LICENSE("GPL") in your module= .

Ian.

>
>
> in my evtchn.c file.
>
>
> --
> Srujan D. Kotikela
>
>
> On Wed, Nov 10, 2010 at 8:14 AM, Konrad Rzeszutek Wilk
> <konrad= .wilk@oracle.com> wrote:
> =A0 =A0 =A0 =A0 On Tue, Nov 09, 2010 at 10:43:46AM -0600, Srujan D. Ko= tikela
> =A0 =A0 =A0 =A0 wrote:
> =A0 =A0 =A0 =A0 > Hi,
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > I wrote a kernel module for handling a custom VIR= Q. It is
> =A0 =A0 =A0 =A0 *compiling* fine,
> =A0 =A0 =A0 =A0 > but when I try to do *modprobe * it's giving = me the
> =A0 =A0 =A0 =A0 following error:
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > FATAL: Error inserting vbase (/lib/modules/
> =A0 =A0 =A0 =A0 > > 2.6.18.8/kernel/drivers/xen/vbase/vbase= .ko): Unknown
> =A0 =A0 =A0 =A0 symbol in module, or
> =A0 =A0 =A0 =A0 > > unknown parameter (see dmesg)
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > The output of dmesg is as follows:
> =A0 =A0 =A0 =A0 >
> =A0 =A0 =A0 =A0 > vbase: Unknown symbol bind_virq_to_irqhandler
>
>
> =A0 =A0 =A0 =A0 You will to tweak your Linux kernel source to have
> =A0 =A0 =A0 =A0 'EXPORT_SYMBOL_GPL' around
> =A0 =A0 =A0 =A0 that function and recompile your kernel.
>
>




--000e0cd1f99c96e1bd0494b7dcfd-- --===============0371631153== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0371631153==--