In the past we have seen issues related to cpu hotplug which are
observed in certain rare case scenarios and not always easy to
investigate and debug [1]. Recently we merged a fix for specific cpu
hotplug scenario which observed along with kdump operations [2].
Additionally, spapr.c has grown to over 5000 lines which also contains
CPU hotplug related code which accounts for nearly 1000 of those lines
yet is conceptually self-contained and independent of the rest of the
machine model.
Extract the cpu hotplug related code into a new compilation unit,
spapr_cpu_hotplug.c, with a matching header.
Also, adding myself as reviewer for PPC KVM CPUs to help share the
review work.
[1] https://lore.kernel.org/all/0732de44-964c-4e0f-b4fd-dcc631ba70fa@linux.ibm.com/
[2] https://gitlab.com/qemu-project/qemu/-/commit/a1c2dfee4f0229bc59bd3ca20af8de1b5543973d
Vishal Chourasia (2):
ppc/spapr: refactor cpu hotplug code to separate file
MAINTAINERS: add self as reviewer for PPC KVM CPUs
MAINTAINERS | 4 +
hw/ppc/meson.build | 1 +
hw/ppc/spapr.c | 903 +-------------------------
hw/ppc/spapr_cpu_hotplug.c | 984 +++++++++++++++++++++++++++++
include/hw/ppc/spapr_cpu_hotplug.h | 74 +++
5 files changed, 1064 insertions(+), 902 deletions(-)
create mode 100644 hw/ppc/spapr_cpu_hotplug.c
create mode 100644 include/hw/ppc/spapr_cpu_hotplug.h
--
2.54.0