when using a wrong CPU number in vcpupin and report the error
Daniel
+Thu Mar 22 11:35:05 CET 2007 Daniel Veillard <veillard@redhat.com>
+
+ * src/virsh.c: applied patch from Masayuki Sunou to avoid a bug
+ when using a wrong CPU number in vcpupin and report the error
+
Thu Mar 22 10:47:46 CET 2007 Daniel Veillard <veillard@redhat.com>
* libvirt.spec.in: one more extra fix for autostart dir from
if (cpu < VIR_NODEINFO_MAXCPUS(nodeinfo)) {
VIR_USE_CPU(cpumap, cpu);
+ } else {
+ vshError(ctl, FALSE, _("Physical CPU %d doesn't exist."), cpu);
+ free(cpumap);
+ virDomainFree(dom);
+ return FALSE;
}
cpulist = index(cpulist, ',');
if (cpulist)