To make guest device (PCI, CPU and memory) hotplug work together with guest migration, spapr drc state needs be transmitted in migration. This patch defines the VMStateDescription struct for spapr drc state to enable it.
To fix the potential racing between hotplug events on guest and guest migration, ccs_list and pending_events of spapr state need be transmitted in migration. This patch also takes care of it. Especially, temporary cache is used for each of them to enable the transmission. Alexey Kardashevskiy (1): vmstate: Define VARRAY with VMS_ALLOC Jianjun Duan (4): spapr: ensure device trees are always associated with DRC Migration: Defined VMStateDescription struct for spapr_drc Migration: migrate ccs_list in spapr state Migration: migrate pending_events of spapr state hw/ppc/spapr.c | 129 ++++++++++++++++++++++++++++++++++++++++---- hw/ppc/spapr_drc.c | 15 ++++++ hw/ppc/spapr_events.c | 24 +++++---- hw/ppc/spapr_pci.c | 12 ++--- hw/ppc/spapr_rtas.c | 2 + include/hw/ppc/spapr.h | 25 ++++++++- include/migration/vmstate.h | 18 ++++++- 7 files changed, 196 insertions(+), 29 deletions(-) -- 1.9.1