Re: [Xen-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-12-05 Thread Anthony PERARD
On Wed, Dec 05, 2018 at 12:05:23PM +, Paul Durrant wrote: > > > +value = xs_read(xsh, XBT_NULL, path, NULL); > > > > The xenstore.h isn't clear about failure of this function, it is > > supposed to return a malloced value. Do we actually need to check if value > > is NULL? > > The comment

Re: [Xen-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-12-05 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 05 December 2018 13:59 > To: Paul Durrant > Cc: Kevin Wolf ; Stefano Stabellini > ; qemu-bl...@nongnu.org; qemu-de...@nongnu.org; > Max Reitz ; xen-devel@lists.xenproject.org > Subject: Re: [PATCH 04/18]

Re: [Xen-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-12-05 Thread Anthony PERARD
On Wed, Dec 05, 2018 at 12:43:57PM +, Paul Durrant wrote: > > > > +value = g_strdup_vprintf(fmt, ap); > > > > > > Looks like g_vasprintf() would be better, since it returns the lenght as > > > well. > > > > > > > Yes. > > I tried this and it appears not to exist in the version of glib in

Re: [Xen-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-12-05 Thread Paul Durrant
> -Original Message- > From: Qemu-devel [mailto:qemu-devel- > bounces+paul.durrant=citrix@nongnu.org] On Behalf Of Paul Durrant > Sent: 05 December 2018 12:05 > To: Anthony Perard > Cc: Kevin Wolf ; Stefano Stabellini > ; qemu-bl...@nongnu.org; qemu-de...@nongnu.org; > Max Reitz ; xen-

Re: [Xen-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-12-05 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 29 November 2018 18:49 > To: Paul Durrant > Cc: qemu-bl...@nongnu.org; qemu-de...@nongnu.org; xen- > de...@lists.xenproject.org; Stefano Stabellini ; > Kevin Wolf ; Max Reitz > Subject: Re: [PATCH 04/18

Re: [Xen-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-11-29 Thread Anthony PERARD
On Wed, Nov 21, 2018 at 03:11:57PM +, Paul Durrant wrote: > This patch adds a new source module, xen-bus-helper.c, which builds on > basic libxenstore primitives to provide functions to create (setting > permissions appropriately) and destroy xenstore areas, and functions to > 'printf' and 'sca

[Xen-devel] [PATCH 04/18] xen: create xenstore areas for XenDevice-s

2018-11-21 Thread Paul Durrant
This patch adds a new source module, xen-bus-helper.c, which builds on basic libxenstore primitives to provide functions to create (setting permissions appropriately) and destroy xenstore areas, and functions to 'printf' and 'scanf' nodes therein. The main xen-bus code then uses these primitives [1