]> git.karo-electronics.de Git - karo-tx-linux.git/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)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 11 Nov 2013 11:50:50 +0000 (11:50 +0000)
commit94f1b8d9ad18f6926840f71c7fc4ce0b09422593
tree9432a9d6234164d9190b3225656eb419a954070e
parent7a7b7685d084cf94efe4e3d048f1c2c7dec5dc4c
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