From: Wei Liu Subject: Re: [RFC PATCH V3 06/22] Define extended event channel registration interface Date: Thu, 28 Feb 2013 11:25:19 +0000 Message-ID: <20130228112519.GE24002@zion.uk.xensource.com> References: <1361975655-22295-1-git-send-email-wei.liu2@citrix.com> <1361975655-22295-7-git-send-email-wei.liu2@citrix.com> <512E45A002000078000C1A46@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <512E45A002000078000C1A46@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: "xen-devel@lists.xen.org" , "Keir (Xen.org)" , David Vrabel , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Wed, Feb 27, 2013 at 04:42:56PM +0000, Jan Beulich wrote: > >>> On 27.02.13 at 15:33, Wei Liu wrote: > > +/* commands: > > + * EVTCHN_EXTENDED_QUERY(0): query supported extended event channel types, > > + * _NONE supported types are or'ed in return value of > > + * the hypercall. > > + * EVTCHN_EXTENDED_*: specific extended event channel subcommand. > > + */ > > +#define EVTCHN_EXTENDED_QUERY 0 > > +/* supported extended event channel */ > > +#define EVTCHN_EXTENDED_NONE 0 > > +#define _EVTCHN_EXTENDED_L3 0 > > +#define EVTCHN_EXTENDED_L3 (1U << _EVTCHN_EXTENDED_L3) > > +struct evtchn_register_extended { > > + /* IN parameters. */ > > + uint32_t cmd; > > Looking at patch 18 you seem to indeed plan on passing a bit mask > with a single bit set as command. Is that really reasonable? I can > see the need for the query to return a bit mask, but that's it. > When passing as command, the cmd field is not a bit mask. It is just that I reuse the numeric representation of the bit mask, saving the need to assign different numbers to commands. Wei. > Jan >