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] FW: about VIRQ & PIRQ

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-devel] FW: about VIRQ & PIRQ
From: "pradeep singh rautela" <rautelap@xxxxxxxxx>
Date: Wed, 6 Jun 2007 19:44:08 +0530
Cc: "Gautham Kampalapur Shankar, TLS, Chennai" <gauthamk@xxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Delivery-date: Wed, 06 Jun 2007 07:12:15 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oA8wHnXEDsYTUe80w9t3NQ6Sc5B2KE23pz8zW5ddywhJ2ODU5QnTfoGlJVGZ9hj17LTHlVMfg81DIYBRLzi1JryFIY4gf0pJm2lZTANf7BKlLRL0dJ28QpfCbuiwpvIrdmgPfWlnRGa369FNrDetTF+3Wb86fQeQktN6DmdYChY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LGRuD2WdgYbeFy+U73cUDN+Q8Sb1m8TnPnchChbhUFGjnHzdiZZswiVXKKqYWNS1aWmz5ShUysX0kELqETemKiZaNYWApYZOCDq1i/lxqprx/DJDKsAYUKGwzh88tpqJt0wI1v6ZASRz8xIro+w5pPA3U1pqeZIuFcNiLHNDGy8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B02561DD1@xxxxxxxxxxxxxxxxx>
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: <6bc632150706060119v30de91b3t48723172ef23f4e7@xxxxxxxxxxxxxx> <907625E08839C4409CE5768403633E0B02561DD1@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/6/07, Petersson, Mats  wrote:
[snip]
> Does this means if hypervisor recieves an interrupt from an external
> card on the behalf of a domU, it actually buffers it like a an APIC
> before eventually generating a VIRQ to the respective domU?


Yes, essentially so. There is a bitmap for each guest of "pending
interrupts", which is read based on an event to the guest.

>
> The above question is more obvious when we have an external hardware
> device which generates interrupts are a very high rate e.g a busy
> network card.
>
> So, does Xen buffers the recieved IRQs if it is unable to send the IRQ
> to the correct domU?

It is "never unable" to send the IRQ to the guest. The guest may be
unable to TAKE the interrupt at this point, but it's never unable for
the hypervisor to "send" the IRQ to the guest.

Yes, messed that up here.

To understand better, have a look at .../xen/arch/x86/irq.c, and in
particular the function __do_IRQ_guest().

>
> I hope same holds true while handling interrupts on the
> behalf of dom0.
> Or is it that, Xen just forwards the interrupt to dom0 which then
> handles the actual creation of a VIRQ using event channels to notify a
> domU?

I think I've told you before, Dom0 is no different from any other domain
when it comes to how it interacts with the hypervisor, aside from having
a bit set that says "You're allowed to do things like
creating/destroying other guests". Interrupt handling in Dom0 is exactly
identical to any other guest - there is nothing in the above irq.c file
that says "if (domain is dom0) ..." (in fact, the only domain_id usage
is for a printk in the "dump_irqs" function, which is for dumping the
current IRQ state on the console when in Xen console-mode.

Thank you Mats.

Regards
- --psr

--
Mats
>
> Thank you
> - --psr
>
> >
> > There are actually more variations to event channels:
> events might also come
> > from another domain we are communicating with, or (I think)
> from another VCPU
> > in the same domain.
> >
> > Hope this helps,
> > Cheers,
> > Mark
> >
> > --
> > Dave: Just a question. What use is a unicyle with no seat?
> And no pedals!
> > Mark: To answer a question with a question: What use is a
> skateboard?
> > Dave: Skateboards have wheels.
> > Mark: My wheel has a wheel!
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> >
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: http://firegpg.tuxfamily.org
>
> iD8DBQFGZm36ky6Gd9lpXlERApaLAJ9PHCvWMG8a16m3gNhb2P/dlJMi2QCfbFkN
> b7sUQ0B9sswcA2gxxsQTdBo=
> =YlzF
> -----END PGP SIGNATURE-----
> --
> ---
> pradeep singh rautela
>
> "Genius is 1% inspiration, and 99% perspiration" - not me :)
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>
>





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFGZsEZky6Gd9lpXlERAhXHAJ98OdKCPTGoi3DeKQgTzgkzK8yH7ACdEaJC
6vBKuDO2Ro5+s/o1jQk7AN4=
=jN20
-----END PGP SIGNATURE-----
--
---
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)

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

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