diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2013-05-29 19:11:15 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-05-30 09:34:56 +0100 |
commit | 9da60855040d480d7269ac7717e27bd9e8106bf0 (patch) | |
tree | 01fc747bab0291ad43488cbb9a71f3ec72ec8c61 /tools | |
parent | ffa27970bc995ac8724f5e0d0bd0180bef5a340a (diff) | |
download | xen-9da60855040d480d7269ac7717e27bd9e8106bf0.tar.gz xen-9da60855040d480d7269ac7717e27bd9e8106bf0.tar.bz2 xen-9da60855040d480d7269ac7717e27bd9e8106bf0.zip |
libxl: Fix qemu-xen command line for vcpus numbers.
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>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxl/libxl_dm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index d10a58fc02..1e3a9f4db8 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)); |