From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dD7pW-0003lY-5T for qemu-devel@nongnu.org; Tue, 23 May 2017 07:18:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dD7pR-00069S-8K for qemu-devel@nongnu.org; Tue, 23 May 2017 07:18:22 -0400 From: Laurent Vivier Date: Tue, 23 May 2017 13:18:08 +0200 Message-Id: <20170523111812.13469-1-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] spapr: disable hotplugging without OS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: Thomas Huth , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Michael Roth , Laurent Vivier If the OS is not started, QEMU sends an event to the OS that is lost and cannot be recovered. An unplug is not able to restore QEMU in a coherent state. So, while the OS is not started, disable CPU and memory hotplug. We use option vector 6 to know if the OS is started This series moves error checking for memory hotplug in a pre_plug function, and introduces the option vector 6 management. It also revert previous fix which was not really fixing the hotplug problem when the OS is not running. Laurent Vivier (4): spapr: add pre_plug function for memory spapr: add option vector 6 spapr: disable hotplugging without OS Revert "spapr: fix memory hot-unplugging" hw/ppc/spapr.c | 103 ++++++++++++++++++++++++++++++++++++-------- hw/ppc/spapr_drc.c | 20 ++------- hw/ppc/spapr_hcall.c | 5 ++- hw/ppc/spapr_ovec.c | 8 ++++ include/hw/ppc/spapr.h | 2 + include/hw/ppc/spapr_drc.h | 1 - include/hw/ppc/spapr_ovec.h | 7 +++ 7 files changed, 109 insertions(+), 37 deletions(-) -- 2.9.4