mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
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>
This commit is contained in:
parent
171da9d5db
commit
62ef3760d4
3 changed files with 82 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
|||
#define _SPAPR_OVEC_H
|
||||
|
||||
#include "cpu.h"
|
||||
#include "migration/vmstate.h"
|
||||
|
||||
typedef struct sPAPROptionVector sPAPROptionVector;
|
||||
|
||||
|
@ -64,4 +65,7 @@ sPAPROptionVector *spapr_ovec_parse_vector(target_ulong table_addr, int vector);
|
|||
int spapr_ovec_populate_dt(void *fdt, int fdt_offset,
|
||||
sPAPROptionVector *ov, const char *name);
|
||||
|
||||
/* migration */
|
||||
extern const VMStateDescription vmstate_spapr_ovec;
|
||||
|
||||
#endif /* !defined (_SPAPR_OVEC_H) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue