xen: implement pirq type event channels
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 1 Oct 2010 16:20:09 +0000 (12:20 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Oct 2010 14:40:29 +0000 (10:40 -0400)
commitd46a78b05c0e37f76ddf4a7a67bf0b6c68bada55
tree0cdea39b1ede2fa88c58be01457a83c39a01e6a8
parentd8e0420603cf1ce9cb459c00ea0b7337de41b968
xen: implement pirq type event channels

A privileged PV Xen domain can get direct access to hardware.  In
order for this to be useful, it must be able to get hardware
interrupts.

Being a PV Xen domain, all interrupts are delivered as event channels.
PIRQ event channels are bound to a pirq number and an interrupt
vector.  When a IO APIC raises a hardware interrupt on that vector, it
is delivered as an event channel, which we can deliver to the
appropriate device driver(s).

This patch simply implements the infrastructure for dealing with pirq
event channels.

[ Impact: integrate hardware interrupts into Xen's event scheme ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c
include/xen/events.h