From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH] xenbus: Add support for xenbus backend in stub domain Date: Fri, 13 Jan 2012 08:20:02 +0000 Message-ID: <4F0FF742020000780006C5CE@nat28.tlf.novell.com> References: <1326411330-7915-1-git-send-email-dgdegra@tycho.nsa.gov> <1326411373-7971-1-git-send-email-dgdegra@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1326411373-7971-1-git-send-email-dgdegra@tycho.nsa.gov> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel De Graaf Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 13.01.12 at 00:36, Daniel De Graaf wrote: > --- a/include/xen/xenbus_dev.h > +++ b/include/xen/xenbus_dev.h > @@ -38,4 +38,18 @@ > #define IOCTL_XENBUS_BACKEND_EVTCHN \ > _IOC(_IOC_NONE, 'B', 0, 0) > > +#define IOCTL_XENBUS_ALLOC \ > + _IOC(_IOC_NONE, 'B', 1, sizeof(struct ioctl_xenbus_alloc)) > +struct ioctl_xenbus_alloc { > + /* IN */ > + /* The domain ID (must exist) for xenstore */ > + uint16_t dom; > + uint16_t pad; > + /* OUT */ > + /* The port allocated for xenbus communication */ > + uint32_t port; > + /* Always set to GNTTAB_RESERVED_XENSTORE */ > + uint32_t grant_ref; > +}; As said in my reply to the previous patch version - if the functionality differs, the number *and* name should be different from the legacy implementation's. Otherwise, how should compatible user space code be written? Jan > + > #endif /* __LINUX_XEN_XENBUS_DEV_H__ */