tools/libxl: introduce some socket helpers
authorChao Peng <chao.p.peng@linux.intel.com>
Thu, 9 Jul 2015 08:54:13 +0000 (16:54 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 9 Jul 2015 09:07:38 +0000 (10:07 +0100)
commitbbf6a4d5127f10118d329e5b361e77a0eb2a25e2
tree951036bc8bfc995e281f4f289e2a654e68dcb6bf
parentb128c388e9fdd81111d1b0b30b64d63261e20397
tools/libxl: introduce some socket helpers

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 <chao.p.peng@linux.intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.h
tools/libxl/libxl_internal.h
tools/libxl/libxl_utils.c
tools/libxl/libxl_utils.h