From: Greg Kurz <groug@kaod.org>
To: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, Cedric Le Goater <clg@kaod.org>,
David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [PATCH v4 0/6] spapr/xics: fix migration of older machine types
Date: Thu, 08 Jun 2017 15:42:32 +0200 [thread overview]
Message-ID: <149692935202.12119.3614006195497745877.stgit@bahia> (raw)
I've provided answers for all comments from the v3 review that I deliberately
don't address in v4.
v4: - some patches from v3 got merged
- added some more preparatory cleanup in xics (patches 1,2)
- merge cpu_setup() handler into realize() (patch 4)
- see individual changelog for patches 3 and 6
v3: - preparatory cleanup in pnv (patch 1)
- rework ICPState realization and vmstate registration (patches 2,3,4)
- fix migration using dummy icp/server entries (patch 5)
v2: - some patches from v1 are already merged in ppc-for-2.10
- added a new fix to a potential memory leak (patch 1)
- consolidate dt_id computation (patch 3)
- see individual changelogs for patch 2 and 4
I could successfully do the following on POWER8 host with full cores (SMT8):
1) start a pseries-2.9 machine with QEMU 2.9:
-smp cores=1,threads=2,maxcpus=8
2) hotplug a core:
device_add host-spapr-cpu-core,core-id=4
3) migrate to QEMU 2.10 configured with core-id 0,4
4) hotplug another core:
device_add host-spapr-cpu-core,core-id=2
5) migrate back to QEMU 2.9 configured with core-id 0,4,2
6) hotplug the core in the last available slot:
device_add host-spapr-cpu-core,core-id=6
7) migrate to QEMU 2.10 configured with core-id 0,4,2,6
I could check that the guest is functional after each migration.
--
Greg
---
Greg Kurz (6):
xics: introduce macros for ICP/ICS link properties
xics: pass appropriate types to realize() handlers.
xics: setup cpu at realize time
xics: drop ICPStateClass::cpu_setup() handler
xics: directly register ICPState objects to vmstate
spapr: fix migration of ICPState objects from/to older QEMU
hw/intc/xics.c | 95 ++++++++++++++++++++---------------------------
hw/intc/xics_kvm.c | 18 ++++-----
hw/intc/xics_pnv.c | 6 +--
hw/ppc/pnv_core.c | 17 ++++----
hw/ppc/pnv_psi.c | 3 +
hw/ppc/spapr.c | 89 +++++++++++++++++++++++++++++++++++++++++++-
hw/ppc/spapr_cpu_core.c | 22 +++++------
include/hw/ppc/spapr.h | 2 +
include/hw/ppc/xics.h | 16 ++++----
9 files changed, 168 insertions(+), 100 deletions(-)
next reply other threads:[~2017-06-08 13:42 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-08 13:42 Greg Kurz [this message]
2017-06-08 13:42 ` [Qemu-devel] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties Greg Kurz
2017-06-08 14:04 ` Cédric Le Goater
2017-06-08 14:32 ` Greg Kurz
2017-06-08 14:51 ` Cédric Le Goater
2017-06-08 15:45 ` Greg Kurz
2017-06-08 16:08 ` Cédric Le Goater
2017-06-08 17:00 ` Greg Kurz
2017-06-08 17:26 ` Cédric Le Goater
2017-06-09 2:10 ` David Gibson
2017-06-09 5:46 ` Cédric Le Goater
2017-06-08 13:42 ` [Qemu-devel] [PATCH v4 2/6] xics: pass appropriate types to realize() handlers Greg Kurz
2017-06-08 13:42 ` [Qemu-devel] [PATCH v4 3/6] xics: setup cpu at realize time Greg Kurz
2017-06-08 14:08 ` Cédric Le Goater
2017-06-08 13:43 ` [Qemu-devel] [PATCH v4 4/6] xics: drop ICPStateClass::cpu_setup() handler Greg Kurz
2017-06-08 14:09 ` Cédric Le Goater
2017-06-08 13:43 ` [Qemu-devel] [PATCH v4 5/6] xics: directly register ICPState objects to vmstate Greg Kurz
2017-06-12 14:15 ` David Gibson
2017-06-13 7:14 ` Greg Kurz
2017-06-13 8:07 ` David Gibson
2017-06-08 13:43 ` [Qemu-devel] [PATCH v4 6/6] spapr: fix migration of ICPState objects from/to older QEMU Greg Kurz
2017-06-12 14:21 ` David Gibson
2017-06-13 7:39 ` Greg Kurz
2017-06-09 2:28 ` [Qemu-devel] [PATCH v4 0/6] spapr/xics: fix migration of older machine types David Gibson
2017-06-09 9:36 ` Greg Kurz
2017-06-09 10:28 ` David Gibson
2017-06-09 15:09 ` Greg Kurz
2017-06-11 9:38 ` David Gibson
2017-06-13 7:43 ` Greg Kurz
2017-06-13 8:29 ` Nikunj A Dadhania
2017-06-14 1:41 ` David Gibson
2017-06-14 4:57 ` Nikunj A Dadhania
2017-06-16 10:53 ` Nikunj A Dadhania
2017-06-16 14:28 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=149692935202.12119.3614006195497745877.stgit@bahia \
--to=groug@kaod.org \
--cc=clg@kaod.org \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.