So running through the qmp command with gdb turned out to be a rather
short ride.
The code just runs by this:
void qmp_cpu_add(int64_t id, Error **errp)
{
MachineClass *mc;
mc = MACHINE_GET_CLASS(current_machine);
if (mc->hot_add_cpu) {
mc->hot_add_cpu(id, errp);
} else {
error_setg(errp, "Not supported");
}
}
And it seems ppc just has no hot_add_cpu set.
So I checked the code for that.
Note: I dropped the calls to it and the definition for a better overview.
1 pc.c pc_machine_class_init 2298 mc->hot_add_cpu =
pc_hot_add_cpu;
2 pc_piix.c pc_i440fx_machine_options 435 m->hot_add_cpu =
pc_hot_add_cpu;
5 pc_q35.c pc_q35_machine_options 288 m->hot_add_cpu =
pc_hot_add_cpu;
6 s390-virtio-ccw.c ccw_machine_class_init 199 mc->hot_add_cpu =
s390_hot_add_cpu;
The usual type definition should be in hw/ppc/spapr.c but there is none
in the qemu 2.8 we plan to release with zesty (nor before).
I checked latest upstream and even there is no such function.
I beg a pardon, but I have to ask what the request actually is meant to
be about.
** Changed in: qemu (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1667805
Title:
ISST-LTE:UBUNTUKVM17.04:lotkvm:lotg3: CPU hotplug fails with 'cpu-
add': Not supported error
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1667805/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs