+Thu Jan 29 17:22:53 GMT 2009 John Levon <john.levon@sun.com>
+
+ * src/xend_internal.c: Fix xend XML generation when CPU pinning
+ is used
+
Thu Jan 29 19:05:00 +0100 2009 Jim Meyering <meyering@redhat.com>
maint: sync from coreutils
def->maxmem = def->memory;
if (cpus != NULL) {
+ def->cpumasklen = VIR_DOMAIN_CPUMASK_LEN;
+ if (VIR_ALLOC_N(def->cpumask, def->cpumasklen) < 0) {
+ virReportOOMError(conn);
+ goto error;
+ }
+
if (virDomainCpuSetParse(conn, &cpus,
0, def->cpumask,
- def->cpumasklen) < 0)
+ def->cpumasklen) < 0) {
+ virXendError(conn, VIR_ERR_INTERNAL_ERROR,
+ _("invalid CPU mask %s"), cpus);
goto error;
+ }
}
+
def->vcpus = sexpr_int(root, "domain/vcpus");
tmp = sexpr_node(root, "domain/on_poweroff");