All of lore.kernel.org
 help / color / mirror / Atom feed
* Error while binding VIRQ to IRQ_HANDLER
@ 2010-11-09 16:43 Srujan D. Kotikela
  2010-11-10 14:14 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 6+ messages in thread
From: Srujan D. Kotikela @ 2010-11-09 16:43 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1246 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 9986 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error while binding VIRQ to IRQ_HANDLER
  2010-11-09 16:43 Error while binding VIRQ to IRQ_HANDLER Srujan D. Kotikela
@ 2010-11-10 14:14 ` Konrad Rzeszutek Wilk
  2010-11-10 16:02   ` Srujan D. Kotikela
  0 siblings, 1 reply; 6+ messages in thread
From: Konrad Rzeszutek Wilk @ 2010-11-10 14:14 UTC (permalink / raw)
  To: Srujan D. Kotikela; +Cc: xen-devel

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error while binding VIRQ to IRQ_HANDLER
  2010-11-10 14:14 ` Konrad Rzeszutek Wilk
@ 2010-11-10 16:02   ` Srujan D. Kotikela
  2010-11-10 16:13     ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Srujan D. Kotikela @ 2010-11-10 16:02 UTC (permalink / raw)
  To: xen-devel; +Cc: Konrad Rzeszutek Wilk


[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]

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.
>

[-- Attachment #1.2: Type: text/html, Size: 1395 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error while binding VIRQ to IRQ_HANDLER
  2010-11-10 16:02   ` Srujan D. Kotikela
@ 2010-11-10 16:13     ` Ian Campbell
  2010-11-10 18:41       ` Srujan D. Kotikela
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2010-11-10 16:13 UTC (permalink / raw)
  To: Srujan D. Kotikela; +Cc: xen-devel@lists.xensource.com, Rzeszutek Wilk, Konrad

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:
>         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.
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error while binding VIRQ to IRQ_HANDLER
  2010-11-10 16:13     ` Ian Campbell
@ 2010-11-10 18:41       ` Srujan D. Kotikela
  2010-11-10 19:28         ` Srujan D. Kotikela
  0 siblings, 1 reply; 6+ messages in thread
From: Srujan D. Kotikela @ 2010-11-10 18:41 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel@lists.xensource.com, Konrad Rzeszutek Wilk


[-- Attachment #1.1: Type: text/plain, Size: 1535 bytes --]

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 <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:
> >         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.
> >
> >
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 2447 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error while binding VIRQ to IRQ_HANDLER
  2010-11-10 18:41       ` Srujan D. Kotikela
@ 2010-11-10 19:28         ` Srujan D. Kotikela
  0 siblings, 0 replies; 6+ messages in thread
From: Srujan D. Kotikela @ 2010-11-10 19:28 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel@lists.xensource.com, Konrad Rzeszutek Wilk


[-- Attachment #1.1: Type: text/plain, Size: 1826 bytes --]

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
<ksrujandas@gmail.com>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 <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:
>> >         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.
>> >
>> >
>>
>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 3066 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-10 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09 16:43 Error while binding VIRQ to IRQ_HANDLER Srujan D. Kotikela
2010-11-10 14:14 ` Konrad Rzeszutek Wilk
2010-11-10 16:02   ` Srujan D. Kotikela
2010-11-10 16:13     ` Ian Campbell
2010-11-10 18:41       ` Srujan D. Kotikela
2010-11-10 19:28         ` Srujan D. Kotikela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.