mbox series

[v1,0/7] pseries: avoid unplug the last online CPU core + assorted fixes

Message ID 20210114180628.1675603-1-danielhb413@gmail.com
Headers show
Series pseries: avoid unplug the last online CPU core + assorted fixes | expand

Message

Daniel Henrique Barboza Jan. 14, 2021, 6:06 p.m. UTC
Hello,

The last 2 patches of this series contains a fix for a hotunplug
situation that we have in the pseries machine, where hotunpluging the
last online CPU of the guest causes the machine to behave not that
great (https://bugzilla.redhat.com/show_bug.cgi?id=1911414).

First 5 patches are somewhat trivial changes that I ended up doing
while investigating.

Daniel Henrique Barboza (7):
  spapr.h: fix trailing whitespace in phb_placement
  spapr_hcall.c: make do_client_architecture_support static
  spapr_rtas.c: fix identation in rtas_ibm_nmi_interlock() string
  spapr_rtas.c: fix identation of rtas_ibm_suspend_me() args
  spapr_cpu_core.c: use g_auto* in spapr_create_vcpu()
  spapr.c: introduce spapr_core_unplug_possible()
  spapr.c: consider CPU core online state before allowing unplug

 hw/ppc/spapr.c          | 66 ++++++++++++++++++++++++++++++++++++-----
 hw/ppc/spapr_cpu_core.c | 12 ++------
 hw/ppc/spapr_hcall.c    |  1 +
 hw/ppc/spapr_rtas.c     |  9 +++---
 include/hw/ppc/spapr.h  |  7 +----
 5 files changed, 68 insertions(+), 27 deletions(-)