From: "Jan Beulich" Subject: Re: [PATCH 4/8] evtchn: use a per-domain variable for the max number of event channels Date: Thu, 15 Aug 2013 15:09:22 +0100 Message-ID: <520CFD3202000078000EC405@nat28.tlf.novell.com> References: <1376071720-17644-1-git-send-email-david.vrabel@citrix.com> <1376071720-17644-5-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V9yF0-0001nG-E5 for xen-devel@lists.xenproject.org; Thu, 15 Aug 2013 14:09:30 +0000 In-Reply-To: <1376071720-17644-5-git-send-email-david.vrabel@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: xen-devel , Keir Fraser , Wei Liu List-Id: xen-devel@lists.xenproject.org >>> On 09.08.13 at 20:08, David Vrabel 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