[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 4/8] evtchn: use a per-domain variable for the max number of event channels



>>> On 09.08.13 at 20:08, David Vrabel <david.vrabel@xxxxxxxxxx> wrote:
> --- a/xen/include/xen/event.h
> +++ b/xen/include/xen/event.h
> @@ -73,7 +73,7 @@ void notify_via_xen_event_channel(struct domain *ld, int 
> lport);
>  #define bucket_from_port(d,p) \
>      ((d)->evtchn[(p)/EVTCHNS_PER_BUCKET])
>  #define port_is_valid(d,p)    \
> -    (((p) >= 0) && ((p) < MAX_EVTCHNS(d)) && \
> +    (((p) >= 0) && ((p) < d->max_evtchns) && \

Please parenthesize d.

Also I suppose this patch intends to eliminate all uses of
MAX_EVTCHNS() - why does it not remove the macro?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.