From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Peng Subject: Re: [PATCH for Xen 4.6 1/5] tools/libxl: introduce libxl_socket_bitmap_fill Date: Tue, 29 Sep 2015 10:49:24 +0800 Message-ID: <20150929024924.GD5813@pengc-linux.bj.intel.com> References: <1443441293-4287-1-git-send-email-chao.p.peng@linux.intel.com> <1443441293-4287-2-git-send-email-chao.p.peng@linux.intel.com> <20150928141227.GB13821@zion.uk.xensource.com> Reply-To: Chao Peng Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150928141227.GB13821@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: xen-devel@lists.xen.org, Ian.Jackson@eu.citrix.com, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, Sep 28, 2015 at 03:12:27PM +0100, Wei Liu wrote: > On Mon, Sep 28, 2015 at 07:54:49PM +0800, Chao Peng wrote: > > It sets the bit on the given bitmap if the corresponding socket is > > available and clears the bit when the corresponding socket is not > > available. > > > > Signed-off-by: Chao Peng > > --- > > tools/libxl/libxl.h | 7 ++++--- > > tools/libxl/libxl_utils.c | 21 +++++++++++++++++++++ > > tools/libxl/libxl_utils.h | 2 ++ > > 3 files changed, 27 insertions(+), 3 deletions(-) > > > > diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h > > index 5f9047c..5a91687 100644 > > --- a/tools/libxl/libxl.h > > +++ b/tools/libxl/libxl.h > > @@ -807,11 +807,12 @@ void libxl_mac_copy(libxl_ctx *ctx, libxl_mac *dst, libxl_mac *src); > > #define LIBXL_HAVE_PCITOPOLOGY 1 > > > > /* > > - * LIBXL_HAVE_SOCKET_BITMAP_ALLOC > > + * LIBXL_HAVE_SOCKET_BITMAP > > * > > - * If this is defined, then libxl_socket_bitmap_alloc exists. > > + * If this is defined, then libxl_socket_bitmap_alloc and > > + * libxl_socket_bitmap_Fill exist. > > _Fill -> _fill. > > > */ > > -#define LIBXL_HAVE_SOCKET_BITMAP_ALLOC 1 > > +#define LIBXL_HAVE_SOCKET_BITMAP 1 > > > > Normally we don't / can't delete existing macros. However this macro was > introduced in this cycle, so we have the liberty to change it before > releasing. > > If for any reason this series doesn't make it in 4.6, you would need to > come up with a different macro name. Agreed, if it misses 4.6, I will use another name. Thanks :) Chao