driver domains
For a driver domain, do interrupts for the devices that service that domain get handled by the driver domain itself, or by domain 0 first?
Which code should I read to understand how this works?
thanks,
Mike Day
Hi Mike,
Interrupts are passed on to the domain that registers the irq handler (and only priviledged domains are allowed to do so). Hence the interrupt would be sent directly to driver domain (unless it is being shared by multiple domains, in which case it would go to all the domains).
A good start would be to look at xen/arch/x86/irq.c, specifically at pirq_guest_bind, pirq_guest_unbind and __do_IRQ_guest.
HTH,
-Himanshu
Quoted 13 lines · Mike D. Day
For a driver domain, do interrupts for the devices that service that domain get handled by the driver domain itself, or by domain 0 first?
Which code should I read to understand how this works?
thanks,
Mike Day
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 5 lines
------------------------------------------------------------------------- Himanshu Raj PhD Student, GaTech (www.cc.gatech.edu/~rhim) I prefer to receive attachments in an open, non-proprietary format. -------------------------------------------------------------------------
Quoted 10 lines · Himanshu Raj
Hi Mike,
Interrupts are passed on to the domain that registers the irq handler (and only priviledged domains are allowed to do so). Hence the interrupt would be sent directly to driver domain (unless it is being shared by multiple domains, in which case it would go to all the domains).
A good start would be to look at
xen/arch/x86/irq.c, specifically atpirq_guest_bind,pirq_guest_unbindand__do_IRQ_guest.
Himanshu thanks to you and Ian for responding!
Mike