]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: migration support for CAS-negotiated option vectors
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 18 Nov 2016 01:40:27 +0000 (19:40 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Nov 2016 01:00:48 +0000 (12:00 +1100)
commit62ef3760d4e400849fc663474227bb4668244455
treed41d6faf465e208cd48110681eafaf1b88579960
parent171da9d5dbd2fe1ee2f923dff736d89be96c9672
spapr: migration support for CAS-negotiated option vectors

With the additional of the OV5_HP_EVT option vector, we now have
certain functionality (namely, memory unplug) that checks at run-time
for whether or not the guest negotiated the option via CAS. Because
we don't currently migrate these negotiated values, we are unable
to unplug memory from a guest after it's been migrated until after
the guest is rebooted and CAS-negotiation is repeated.

This patch fixes this by adding CAS-negotiated options to the
migration stream. We do this using a subsection, since the
negotiated value of OV5_HP_EVT is the only option currently needed
to maintain proper functionality for a running guest.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_ovec.c
include/hw/ppc/spapr_ovec.h