From: Wei Liu Subject: Re: [PATCH v6 10/10] libxl: set vnuma for domain Date: Tue, 12 Aug 2014 10:42:00 +0100 Message-ID: <20140812094200.GA16810@zion.uk.xensource.com> References: <1405662609-31486-1-git-send-email-ufimtseva@gmail.com> <1405662609-31486-11-git-send-email-ufimtseva@gmail.com> <1406630731.23810.15.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Elena Ufimtseva Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , George Dunlap , Matt Wilson , Dario Faggioli , Li Yechen , Ian Jackson , "xen-devel@lists.xen.org" , Jan Beulich , wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, Aug 11, 2014 at 11:52:55PM -0400, Elena Ufimtseva wrote: > On Tue, Jul 29, 2014 at 6:45 AM, Ian Campbell wrote: > > On Fri, 2014-07-18 at 01:50 -0400, Elena Ufimtseva wrote: > >> Call xc_domain_setvnuma to set vnuma topology for domain. > >> Prepares xc_dom_image for domain bootmem memory allocation > >> > >> Signed-off-by: Elena Ufimtseva > >> --- > >> tools/libxl/libxl.c | 22 ++++++++++++++++++++++ > >> tools/libxl/libxl.h | 19 +++++++++++++++++++ > >> 2 files changed, 41 insertions(+) > >> > >> diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c > >> index 39f1c28..e9f2607 100644 > >> --- a/tools/libxl/libxl.c > >> +++ b/tools/libxl/libxl.c > >> @@ -4807,6 +4807,28 @@ static int libxl__set_vcpuonline_qmp(libxl__gc *gc, uint32_t domid, > >> return 0; > >> } > >> > >> +int libxl_domain_setvnuma(libxl_ctx *ctx, > >> + uint32_t domid, > > > > Can this be done on an existing domain? I'd have expected this to be an > > internal function which is called from the inside of the domain creation > > machinery. > > > > Does anything use this? If yes then since this is the last patch you > > must have introduced a bisection hazard. > > > > Ian. > > > > Ian, Wei > > Preparing the series, I figured that this particular function > libxl_domain_setvnuma does not have any users. Instead, xc one is > called directly. > I want to omit this patch. Do I need to have #define > LIBXL_HAVE_DOMAIN_SETVNUMA 1 in this case? > If your macro is specifically for this function then you need to remove macro as well. In this case I think the answer is "no you don't need that in libxl.h", unless I've mistaken the purpose of your macro. Wei. > Thank you. > > -- > Elena > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel