qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] monitor: increase the refcount of the current CPU
@ 2017-10-13  8:35 Greg Kurz
  2017-10-13  8:35 ` [Qemu-devel] [PATCH 1/2] spapr_cpu_core: instantiate CPUs separately Greg Kurz
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Greg Kurz @ 2017-10-13  8:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-ppc, David Gibson, Dr. David Alan Gilbert, Igor Mammedov,
	Markus Armbruster, Cornelia Huck

If a CPU selected with the "cpu" command is hot-unplugged then "info cpus"
causes QEMU to exit:
    
(qemu) device_del cpu1
(qemu) info cpus
qemu:qemu_cpu_kick_thread: No such process

I could verify that this happens with x86 and ppc, but I guess s390x is
also impacted.

This series tries to fix the issue by using object_ref() and object_unref()
in the monitor code. For this to work on ppc, some preliminary work is
needed to let QOM handle the CPU object lifecycle.

Please comment.

--
Greg

---

Greg Kurz (2):
      spapr_cpu_core: instantiate CPUs separately
      monitor: add proper reference counting of the current CPU


 hw/ppc/spapr.c                  |   10 +++-------
 hw/ppc/spapr_cpu_core.c         |   29 +++++++++--------------------
 include/hw/ppc/spapr_cpu_core.h |    2 +-
 monitor.c                       |   12 ++++++++++++
 4 files changed, 25 insertions(+), 28 deletions(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-10-16 17:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-13  8:35 [Qemu-devel] [PATCH 0/2] monitor: increase the refcount of the current CPU Greg Kurz
2017-10-13  8:35 ` [Qemu-devel] [PATCH 1/2] spapr_cpu_core: instantiate CPUs separately Greg Kurz
2017-10-13  9:21   ` Igor Mammedov
2017-10-13  9:43     ` Greg Kurz
2017-10-13  8:35 ` [Qemu-devel] [PATCH 2/2] monitor: add proper reference counting of the current CPU Greg Kurz
2017-10-13  9:24   ` Igor Mammedov
2017-10-13 10:05     ` Greg Kurz
2017-10-16  8:07       ` Igor Mammedov
2017-10-16 17:16         ` Greg Kurz
2017-10-13  8:46 ` [Qemu-devel] [PATCH 0/2] monitor: increase the refcount " Cornelia Huck
2017-10-13  9:14   ` Greg Kurz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).