aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/events.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2010-06-24 11:42:04 -0400
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2010-10-22 16:25:41 -0400
commit42a1de56f35a9c87932f45439dc1b09c8da0cc95 (patch)
tree4be6a92222ef2efabd1705cd6b3adb7832f7f9a9 /drivers/xen/events.c
parent01557baff6e9c371d4c96e01089dca32cf347500 (diff)
xen: implement xen_hvm_register_pirq
xen_hvm_register_pirq allows the kernel to map a GSI into a Xen pirq and receive the interrupt as an event channel from that point on. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/events.c')
-rw-r--r--drivers/xen/events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 07e56e5a5d2d..239b011ef56f 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -36,6 +36,7 @@
36#include <asm/idle.h> 36#include <asm/idle.h>
37#include <asm/io_apic.h> 37#include <asm/io_apic.h>
38#include <asm/sync_bitops.h> 38#include <asm/sync_bitops.h>
39#include <asm/xen/pci.h>
39#include <asm/xen/hypercall.h> 40#include <asm/xen/hypercall.h>
40#include <asm/xen/hypervisor.h> 41#include <asm/xen/hypervisor.h>
41 42
@@ -75,7 +76,8 @@ enum xen_irq_type {
75 * event channel - irq->event channel mapping 76 * event channel - irq->event channel mapping
76 * cpu - cpu this event channel is bound to 77 * cpu - cpu this event channel is bound to
77 * index - type-specific information: 78 * index - type-specific information:
78 * PIRQ - vector, with MSB being "needs EIO" 79 * PIRQ - vector, with MSB being "needs EIO", or physical IRQ of the HVM
80 * guest, or GSI (real passthrough IRQ) of the device.
79 * VIRQ - virq number 81 * VIRQ - virq number
80 * IPI - IPI vector 82 * IPI - IPI vector
81 * EVTCHN - 83 * EVTCHN -