[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [Patch] support cpupool for xl create

  • To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Mon, 10 May 2010 08:58:39 +0200
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 10 May 2010 00:00:11 -0700
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=FwGgfdaYflDHSlDzRSfsAeW3tgN/EXBTwdj8q0s2NRBxjnZM79mGA+PM g+hokUEM+vGiVvfqaE7RH8HgNVUzQNLMscHP5meewDJlIZYhypneECgt0 1lyQ7fSWK5Ozgpb+oM6B7cCoQOU9vDcnpYTrDtaJRe1GZBeEkZtDbN/Uq 1j5a8ehMjkYW9ltdf0yux0MQ9liT0Ox/8dGs/7bLOWp2Xk1FLWdrrWpH6 ecnCnXVJh3vDUS9kjgBMHA9UwEPNt;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 05/10/2010 08:42 AM, Jeremy Fitzhardinge wrote:
On 05/09/2010 11:05 PM, Juergen Gross wrote:
diff -r bbf009817ffb tools/libxl/libxl.c
--- a/tools/libxl/libxl.c    Fri May 07 19:22:28 2010 +0100
+++ b/tools/libxl/libxl.c    Fri May 07 14:57:00 2010 -0700
@@ -169,7 +169,8 @@

       xs_write(ctx->xsh, t, libxl_sprintf(ctx, "%s/uuid", vm_path),
uuid_string, strlen(uuid_string));
       xs_write(ctx->xsh, t, libxl_sprintf(ctx, "%s/name", vm_path),
info->name, strlen(info->name));
-    xs_write(ctx->xsh, t, libxl_sprintf(ctx, "%s/pool_name",
vm_path), info->poolname, strlen(info->poolname));
+    if (info->poolname)
+        xs_write(ctx->xsh, t, libxl_sprintf(ctx, "%s/pool_name",
vm_path), info->poolname, strlen(info->poolname));

       libxl_xs_writev(ctx, t, dom_path, info->xsdata);
       libxl_xs_writev(ctx, t, libxl_sprintf(ctx, "%s/platform",
dom_path), info->platformdata);

fixes it for me.

You seem to have specified a not existing cpupool.
The solution should not be to ignore this, but to do a proper test on the
pool parameter.
Attached patch does this.

I'm not using cpupools.  My config makes no mention of "pool" at all.

I tested this case and it worked for me.
Are you sure you have all actual patches installed?
Could you try "xl create -d" and look for the cpupool settings?


Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.