mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Fix xend XML generation when CPU pinning is used
This commit is contained in:
parent
73da543e77
commit
3a8d93ab36
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -2226,11 +2226,21 @@ xenDaemonParseSxpr(virConnectPtr conn,
|
||||
def->maxmem = def->memory;
|
||||
|
||||
if (cpus != NULL) {
|
||||
if (virDomainCpuSetParse(conn, &cpus,
|
||||
0, def->cpumask,
|
||||
def->cpumasklen) < 0)
|
||||
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) {
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user