From: Ian Campbell Subject: Re: [PATCH] libxl: Fix qemu-xen command line for vcpus numbers. Date: Thu, 30 May 2013 09:58:07 +0100 Message-ID: <1369904287.13087.36.camel@zakaz.uk.xensource.com> References: <1369851075-24535-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1369851075-24535-1-git-send-email-anthony.perard@citrix.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: Anthony PERARD Cc: Ian Jackson , Xen Devel List-Id: xen-devel@lists.xenproject.org On Wed, 2013-05-29 at 19:11 +0100, Anthony PERARD wrote: > On the qemu-xen command line, the number of vcpus initially online and > the number of maximum available vcpus are inverted. > > Signed-off-by: Anthony PERARD Doh! Acked + applied, thanks. > --- > tools/libxl/libxl_dm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c > index d10a58f..1e3a9f4 100644 > --- a/tools/libxl/libxl_dm.c > +++ b/tools/libxl/libxl_dm.c > @@ -533,8 +533,8 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc, > nr_set_cpus = libxl_bitmap_count_set(&b_info->avail_vcpus); > > flexarray_append(dm_args, libxl__sprintf(gc, "%d,maxcpus=%d", > - b_info->max_vcpus, > - nr_set_cpus)); > + nr_set_cpus, > + b_info->max_vcpus)); > } else > flexarray_append(dm_args, libxl__sprintf(gc, "%d", > b_info->max_vcpus));