Re: [Xen-devel] [RFC PATCH] tools/libxl : add struct and parsing utils for the 'static_shm' xl config entry

2017-07-20 Thread Stefano Stabellini
On Thu, 20 Jul 2017, Zhongze Liu wrote: > >>> +} else if (!strcmp(key, "begin") || !strcmp(key, "end")) { > >>> +char *endptr; > >>> +int base = 10; > >>> +uint64_t new_bound; > >>> + > >>> +/* could be in hex form */ > >>> +if ('0' == val[0] && 'x' ==

Re: [Xen-devel] [RFC PATCH] tools/libxl : add struct and parsing utils for the 'static_shm' xl config entry

2017-07-20 Thread Stefano Stabellini
On Thu, 20 Jul 2017, Zhongze Liu wrote: > >> #endif /* LIBXL_H */ > >> diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > >> index 8a9849c643..8c68b45add 100644 > >> --- a/tools/libxl/libxl_types.idl > >> +++ b/tools/libxl/libxl_types.idl > >> @@ -779,6 +779,57 @@

Re: [Xen-devel] [RFC PATCH] tools/libxl : add struct and parsing utils for the 'static_shm' xl config entry

2017-07-20 Thread Zhongze Liu
2017-07-20 9:43 GMT+08:00 Zhongze Liu : > Hi Stefano, > > 2017-07-20 3:24 GMT+08:00 Stefano Stabellini : >> On Wed, 19 Jul 2017, Zhongze Liu wrote: >>> Add a new struct libxl_static_shm in the libxl IDL for the proposed new xl >>> config entry

Re: [Xen-devel] [RFC PATCH] tools/libxl : add struct and parsing utils for the 'static_shm' xl config entry

2017-07-19 Thread Zhongze Liu
Hi Stefano, 2017-07-20 3:24 GMT+08:00 Stefano Stabellini : > On Wed, 19 Jul 2017, Zhongze Liu wrote: >> Add a new struct libxl_static_shm in the libxl IDL for the proposed new xl >> config entry 'static_shm' (see [1]), which allow the user to set up shared >> memory areas

Re: [Xen-devel] [RFC PATCH] tools/libxl : add struct and parsing utils for the 'static_shm' xl config entry

2017-07-19 Thread Stefano Stabellini
On Wed, 19 Jul 2017, Zhongze Liu wrote: > Add a new struct libxl_static_shm in the libxl IDL for the proposed new xl > config entry 'static_shm' (see [1]), which allow the user to set up shared > memory areas among several VMs for communication. > > Add related parsing code to the libxl/libxlu_*

[Xen-devel] [RFC PATCH] tools/libxl : add struct and parsing utils for the 'static_shm' xl config entry

2017-07-18 Thread Zhongze Liu
Add a new struct libxl_static_shm in the libxl IDL for the proposed new xl config entry 'static_shm' (see [1]), which allow the user to set up shared memory areas among several VMs for communication. Add related parsing code to the libxl/libxlu_* family and xl/xl_parse.c [1]: [RFC v3]Proposal to