diff options
author | David Vrabel <david.vrabel@citrix.com> | 2013-09-23 15:47:26 +0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-01-06 19:07:54 +0400 |
commit | 6ccecb0fbc0494c7221459e6358a016f3281a0ca (patch) | |
tree | 773bff549aca665df8b61825c3ef919f179a9acd /include | |
parent | bf2bbe07f13846a90d4447521d87566d6f87bc0e (diff) | |
download | linux-6ccecb0fbc0494c7221459e6358a016f3281a0ca.tar.xz |
xen/events: allow event channel priority to be set
Add xen_irq_set_priority() to set an event channels priority. This function
will only work with event channel ABIs that support priority (i.e., the
FIFO-based ABI).
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xen/events.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xen/events.h b/include/xen/events.h index 55b42cc997f6..c9c85cf84895 100644 --- a/include/xen/events.h +++ b/include/xen/events.h @@ -39,6 +39,11 @@ int bind_interdomain_evtchn_to_irqhandler(unsigned int remote_domain, */ void unbind_from_irqhandler(unsigned int irq, void *dev_id); +#define XEN_IRQ_PRIORITY_MAX EVTCHN_FIFO_PRIORITY_MAX +#define XEN_IRQ_PRIORITY_DEFAULT EVTCHN_FIFO_PRIORITY_DEFAULT +#define XEN_IRQ_PRIORITY_MIN EVTCHN_FIFO_PRIORITY_MIN +int xen_set_irq_priority(unsigned irq, unsigned priority); + /* * Allow extra references to event channels exposed to userspace by evtchn */ |