qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/6] spapr/xics: fix migration of older machine types
@ 2017-06-08 13:42 Greg Kurz
  2017-06-08 13:42 ` [Qemu-devel] [PATCH v4 1/6] xics: introduce macros for ICP/ICS link properties Greg Kurz
                   ` (6 more replies)
  0 siblings, 7 replies; 34+ messages in thread
From: Greg Kurz @ 2017-06-08 13:42 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-ppc, Cedric Le Goater, David Gibson

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(-)

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2017-06-16 14:44 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 13:42 [Qemu-devel] [PATCH v4 0/6] spapr/xics: fix migration of older machine types Greg Kurz
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).