]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: Don't request to unplug the same core twice
authorGreg Kurz <groug@kaod.org>
Wed, 23 Oct 2019 19:17:40 +0000 (21:17 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Oct 2019 22:37:54 +0000 (09:37 +1100)
commit47c8c915b1628360d4d7d483e421e49b6bcfc371
tree136d99d00f8e8149f1728cd4b002847eb93529a7
parentcb97526aa47e0590a04bf90579b76584fbc0d79f
spapr: Don't request to unplug the same core twice

We must not call spapr_drc_detach() on a detached DRC otherwise bad things
can happen, ie. QEMU hangs or crashes. This is easily demonstrated with
a CPU hotplug/unplug loop using QMP.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157185826035.3073024.1664101000438499392.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c