qemu/include/hw/ppc
Bharata B Rao aab99135b6 spapr_drc: Prevent detach racing against attach for CPU DR
If a CPU is hot removed while hotplug of the same is still in progress,
the guest crashes. Prevent this by ensuring that detach is done only
after attach has completed.

The existing code already prevents such race for PCI hotplug. However
given that CPU is a logical DR unlike PCI and starts with ISOLATED
state, we need a logic that works for CPU too.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
               [Don't set awaiting_attach for PCI devices]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-06-17 16:33:48 +10:00
..
mac_dbdma.h macio: call dma_memory_unmap() at the end of each DMA transfer 2016-06-14 10:43:24 +10:00
openpic.h hw: cannot include hw/hw.h from user emulation 2016-05-19 16:42:28 +02:00
ppc.h ppc: use PowerPCCPU instead of CPUPPCState 2016-05-19 16:42:27 +02:00
ppc4xx.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ppc_e500.h intc/openpic: Build openpic only once 2013-07-09 21:33:02 +02:00
spapr.h spapr: Ensure all LMBs are represented in ibm,dynamic-memory 2016-06-14 13:20:01 +10:00
spapr_drc.h spapr_drc: Prevent detach racing against attach for CPU DR 2016-06-17 16:33:48 +10:00
spapr_vio.h hw: do not use VMSTATE_*TL 2016-05-19 16:42:28 +02:00
xics.h xics,xics_kvm: Handle CPU unplug correctly 2016-06-17 16:33:48 +10:00