]> Pileus Git - ~andy/linux/commit
xen/events: Refactor evtchn_to_irq array to be dynamically allocated
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 17 Oct 2013 14:23:15 +0000 (15:23 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:07:47 +0000 (10:07 -0500)
commitd0b075ffeede257342c3afdbeadd2fda8504ecee
tree1c512a95b2e335301917ba5f77553545c14ae215
parent083858758f67bb20ef6be5bc8442be91cca8ee2d
xen/events: Refactor evtchn_to_irq array to be dynamically allocated

Refactor static array evtchn_to_irq array to be dynamically allocated by
implementing get and set functions for accesses to the array.

Two new port ops are added: max_channels (maximum supported number of
event channels) and nr_channels (number of currently usable event
channels).  For the 2-level ABI, these numbers are both the same as
the shared data structure is a fixed size. For the FIFO ABI, these
will be different as the event array is expanded dynamically.

This allows more than 65000 event channels so an unsigned short is no
longer sufficient for an event channel port number and unsigned int is
used instead.

Signed-off-by: Malcolm Crossley <malcolm.crossley@citrix.com>
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>
drivers/xen/events/events_2l.c
drivers/xen/events/events_base.c
drivers/xen/events/events_internal.h