Re: [Xen-devel] [PATCHv1 3/6] evtchn: simplify port_is_valid()

2015-06-09 Thread David Vrabel
On 09/06/15 16:08, Andrew Cooper wrote: > On 09/06/15 15:59, David Vrabel wrote: >> By keeping a count of the number of currently valid event channels, >> port_is_valid() can be simplified. >> >> d->valid_evtchns can also be tested without holding d->event_lock which >> will be useful later on. [..

Re: [Xen-devel] [PATCHv1 3/6] evtchn: simplify port_is_valid()

2015-06-09 Thread Andrew Cooper
On 09/06/15 15:59, David Vrabel wrote: > By keeping a count of the number of currently valid event channels, > port_is_valid() can be simplified. > > d->valid_evtchns can also be tested without holding d->event_lock which > will be useful later on. > > Signed-off-by: David Vrabel > --- > xen/comm

[Xen-devel] [PATCHv1 3/6] evtchn: simplify port_is_valid()

2015-06-09 Thread David Vrabel
By keeping a count of the number of currently valid event channels, port_is_valid() can be simplified. d->valid_evtchns can also be tested without holding d->event_lock which will be useful later on. Signed-off-by: David Vrabel --- xen/common/event_channel.c |3 +++ xen/include/xen/event.h