Re: [Xen-devel] [PATCH v6 12/14] tools/libxl: introduce some socket helpers

2015-05-06 Thread Chao Peng
On Tue, May 05, 2015 at 01:45:02PM +0100, Ian Campbell wrote: > On Tue, 2015-05-05 at 13:43 +0100, Ian Campbell wrote: > > On Thu, 2015-04-23 at 17:55 +0800, Chao Peng wrote: > > > Add libxl_socket_bitmap_alloc() to allow allocating a socket specific > > > libxl_bitmap (as it is for cpu/node bitmap

Re: [Xen-devel] [PATCH v6 12/14] tools/libxl: introduce some socket helpers

2015-05-05 Thread Ian Campbell
On Tue, 2015-05-05 at 13:43 +0100, Ian Campbell wrote: > On Thu, 2015-04-23 at 17:55 +0800, Chao Peng wrote: > > Add libxl_socket_bitmap_alloc() to allow allocating a socket specific > > libxl_bitmap (as it is for cpu/node bitmap). > > > > Internal function libxl__count_physical_sockets() is intro

Re: [Xen-devel] [PATCH v6 12/14] tools/libxl: introduce some socket helpers

2015-05-05 Thread Ian Campbell
On Thu, 2015-04-23 at 17:55 +0800, Chao Peng wrote: > Add libxl_socket_bitmap_alloc() to allow allocating a socket specific > libxl_bitmap (as it is for cpu/node bitmap). > > Internal function libxl__count_physical_sockets() is introduced together > to get the socket count when the size of bitmap

[Xen-devel] [PATCH v6 12/14] tools/libxl: introduce some socket helpers

2015-04-23 Thread Chao Peng
Add libxl_socket_bitmap_alloc() to allow allocating a socket specific libxl_bitmap (as it is for cpu/node bitmap). Internal function libxl__count_physical_sockets() is introduced together to get the socket count when the size of bitmap is not specified. Signed-off-by: Chao Peng --- tools/libxl/