diff options
author | David Vrabel <david.vrabel@citrix.com> | 2013-09-23 16:03:38 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-01-06 10:07:50 -0500 |
commit | 0dc0064add422bc0ef5165ebe9ece3052bbd457d (patch) | |
tree | 29dff7edc3c45bf038e3b36a53d3bf4a647f29ff /drivers/xen/events/events_base.c | |
parent | fd21069dfe31a4b20f5ef580006abe72d1660f5b (diff) |
xen/evtchn: support more than 4096 ports
Remove the check during unbind for NR_EVENT_CHANNELS as this limits
support to less than 4096 ports.
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 'drivers/xen/events/events_base.c')
-rw-r--r-- | drivers/xen/events/events_base.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index c6d64f1e191c..9d0d88cf74af 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c | |||
@@ -952,6 +952,19 @@ static int find_virq(unsigned int virq, unsigned int cpu) | |||
952 | return rc; | 952 | return rc; |
953 | } | 953 | } |
954 | 954 | ||
955 | /** | ||
956 | * xen_evtchn_nr_channels - number of usable event channel ports | ||
957 | * | ||
958 | * This may be less than the maximum supported by the current | ||
959 | * hypervisor ABI. Use xen_evtchn_max_channels() for the maximum | ||
960 | * supported. | ||
961 | */ | ||
962 | unsigned xen_evtchn_nr_channels(void) | ||
963 | { | ||
964 | return evtchn_ops->nr_channels(); | ||
965 | } | ||
966 | EXPORT_SYMBOL_GPL(xen_evtchn_nr_channels); | ||
967 | |||
955 | int bind_virq_to_irq(unsigned int virq, unsigned int cpu) | 968 | int bind_virq_to_irq(unsigned int virq, unsigned int cpu) |
956 | { | 969 | { |
957 | struct evtchn_bind_virq bind_virq; | 970 | struct evtchn_bind_virq bind_virq; |