summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2010-07-01 18:10:39 +0200
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2010-10-22 22:25:43 +0200
commit809f9267bbaba7765cdb86a47f2e6e4bf4951b69 (patch)
tree5ed0ad8e7f5f535d94927498feefba15c9770e91 /include
parentxen: support GSI -> pirq remapping in PV on HVM guests (diff)
downloadlinux-809f9267bbaba7765cdb86a47f2e6e4bf4951b69.tar.xz
linux-809f9267bbaba7765cdb86a47f2e6e4bf4951b69.zip
xen: map MSIs into pirqs
Map MSIs into pirqs, writing 0 in the MSI vector data field and the pirq number in the MSI destination id field. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/xen/events.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/xen/events.h b/include/xen/events.h
index deec8faace22..0c58db6ea3f4 100644
--- a/include/xen/events.h
+++ b/include/xen/events.h
@@ -72,6 +72,8 @@ void xen_hvm_evtchn_do_upcall(void);
* usual. */
int xen_allocate_pirq(unsigned gsi, int shareable, char *name);
int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name);
+/* Allocate an irq and a pirq to be used with MSIs. */
+void xen_allocate_pirq_msi(char *name, int *irq, int *pirq);
/* De-allocates the above mentioned physical interrupt. */
int xen_destroy_irq(int irq);