[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl/xl: fix multivcpu handling
On 03/06/10 15:54, Stefano Stabellini wrote: Hi all, currently libxl and xl are incapable of handling multivcpus guests correctly, this patch fixes it. Signed-off-by: Stefano Stabellini<stefano.stabellini@xxxxxxxxxxxxx> --- diff -r 4ab68bf4c37e tools/libxl/libxl.c --- a/tools/libxl/libxl.c Thu Jun 03 07:30:54 2010 +0100 +++ b/tools/libxl/libxl.c Thu Jun 03 15:51:10 2010 +0100 @@ -875,6 +875,14 @@ if (info->apic) { flexarray_set(dm_args, num++, "-acpi"); } + if (info->vcpus) { + flexarray_set(dm_args, num++, "-vcpus"); + flexarray_set(dm_args, num++, libxl_sprintf(ctx, "%d", info->vcpus)); + } should be either if (info->vcpus > 1) or no test at all and info->vcpus == 0 should return with invalid argument. -- Vincent _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |