From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arASY-0000gM-Lg for qemu-devel@nongnu.org; Fri, 15 Apr 2016 16:35:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arASU-0000wW-LQ for qemu-devel@nongnu.org; Fri, 15 Apr 2016 16:35:22 -0400 Received: from e19.ny.us.ibm.com ([129.33.205.209]:36594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arASU-0000vd-Gt for qemu-devel@nongnu.org; Fri, 15 Apr 2016 16:35:18 -0400 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Apr 2016 16:35:17 -0400 From: Jianjun Duan Date: Fri, 15 Apr 2016 13:33:00 -0700 Message-Id: <1460752385-13259-1-git-send-email-duanj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/5] migration: ensure hotplug and migration work together List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, mdroth@linux.vnet.ibm.com, david@gibson.dropbear.id.au, Jianjun Duan 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