All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: Fix qemu-xen command line for vcpus numbers.
@ 2013-05-29 18:11 Anthony PERARD
  2013-05-30  8:58 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony PERARD @ 2013-05-29 18:11 UTC (permalink / raw)
  To: Xen Devel; +Cc: Anthony PERARD, Ian Jackson, Ian Campbell

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 <anthony.perard@citrix.com>
---
 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));
-- 
Anthony PERARD

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libxl: Fix qemu-xen command line for vcpus numbers.
  2013-05-29 18:11 [PATCH] libxl: Fix qemu-xen command line for vcpus numbers Anthony PERARD
@ 2013-05-30  8:58 ` Ian Campbell
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2013-05-30  8:58 UTC (permalink / raw)
  To: Anthony PERARD; +Cc: Ian Jackson, Xen Devel

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 <anthony.perard@citrix.com>

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));

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-30  8:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 18:11 [PATCH] libxl: Fix qemu-xen command line for vcpus numbers Anthony PERARD
2013-05-30  8:58 ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.