Why ARM CPU hot(un)plug is still unsupported?

2023-05-08 Thread Zongyuan Li
I’v noticed that there used to be a patch series working on it: https://patchew.org/QEMU/20200613213629.21984-1-salil.me...@huawei.com/ It seems to be working, any reason on why it is not merged? Is there any difficulty to implement cpu hot(un)plug in qemu-arm(especially for kvm case)? Hope I ca

How 'qdev_realize_and_unref' work?

2022-03-22 Thread Zongyuan Li
I recently read the following code in hw/openrisc/openrisc_sim.c: > if (num_cpus > 1) { >DeviceState *splitter = qdev_new(TYPE_SPLIT_IRQ); >qdev_prop_set_uint32(splitter, "num-lines", num_cpus); >qdev_realize_and_unref(splitter, NULL, &error_fatal); >for (i = 0; i