From: Wei Liu Subject: Re: [PATCH v2 5/5] libxc: rumpxen: provide xc_osdep_info Date: Tue, 3 Mar 2015 16:41:23 +0000 Message-ID: <20150303164123.GC11855@zion.uk.xensource.com> References: <1425398241-20807-1-git-send-email-wei.liu2@citrix.com> <1425398241-20807-6-git-send-email-wei.liu2@citrix.com> <20150303160529.GO9968@type.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20150303160529.GO9968@type.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Samuel Thibault , Wei Liu , xen-devel@lists.xen.org, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, Mar 03, 2015 at 05:05:29PM +0100, Samuel Thibault wrote: > Wei Liu, le Tue 03 Mar 2015 15:57:21 +0000, a =E9crit : > > This allows programs which use the bulk of libxc to link. We use > > /dev/xenevt for event channels, the raw minios functions for privcmd > > and gnttab, and the netbsd versions of discard_file_cache and > > xc_memalign. > > = > > Signed-off-by: Ian Jackson > > Signed-off-by: Wei Liu > = > Acked-by: Samuel Thibault > = > > +static xc_osdep_handle minios_privcmd_open(xc_interface *xch) > > +{ > > + return 1; > > +} > > +static xc_osdep_handle minios_gnttab_open(xc_gnttab *xcg) > > +{ > > + return 1; > > +} > = > Perhaps return a different fd number? > = After thinking a bit more I think we should use alloc_fd(FTYPE_*) for all file descriptor allocation. Wei. > Samuel