[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v2 0/2] spapr: disable hotplugging without OS
From: |
Laurent Vivier |
Subject: |
[Qemu-ppc] [PATCH v2 0/2] spapr: disable hotplugging without OS |
Date: |
Thu, 8 Jun 2017 19:27:41 +0200 |
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 guess the OS is started if the CAS has been negotiated.
This series also revert previous fix which was not really fixing
the hotplug problem when the OS is not running.
v2:
- fix indent
- remove useless local_err
- allow hotplug if the VM is not started (pre-launch or incoming state)
- remove vector 6, instead just mark the end of CAS negotiation
Laurent Vivier (2):
spapr: disable hotplugging without OS
Revert "spapr: fix memory hot-unplugging"
hw/ppc/spapr.c | 51 +++++++++++++++++++++++++++++++++++++++++++---
hw/ppc/spapr_drc.c | 20 +++---------------
hw/ppc/spapr_hcall.c | 1 +
include/hw/ppc/spapr.h | 2 ++
include/hw/ppc/spapr_drc.h | 1 -
5 files changed, 54 insertions(+), 21 deletions(-)
--
2.9.4