9d18af93 | 26-Jun-2017 |
Peter Xu <peterx@redhat.com> |
migration: hmp: dump globals
Now we have some globals that can be configured for migration. Dump them in HMP info migration for better debugging.
(we can also use this to monitor whether COMPAT fie
migration: hmp: dump globals
Now we have some globals that can be configured for migration. Dump them in HMP info migration for better debugging.
(we can also use this to monitor whether COMPAT fields are applied correctly on compatible machines)
Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1498536619-14548-11-git-send-email-peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
show more ...
|
15c38503 | 26-Jun-2017 |
Peter Xu <peterx@redhat.com> |
migration: move skip_section_footers
Move it into MigrationState, revert its meaning and renaming it to send_section_footer, with a property bound to it. Same trick is played like previous patches.
migration: move skip_section_footers
Move it into MigrationState, revert its meaning and renaming it to send_section_footer, with a property bound to it. Same trick is played like previous patches.
Removing savevm_skip_section_footers().
Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1498536619-14548-9-git-send-email-peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
show more ...
|
71dd4c1a | 26-Jun-2017 |
Peter Xu <peterx@redhat.com> |
migration: move skip_configuration out
It was in SaveState but now moved to MigrationState altogether, reverted its meaning, then renamed to "send_configuration". Again, using HW_COMPAT_2_3 for old
migration: move skip_configuration out
It was in SaveState but now moved to MigrationState altogether, reverted its meaning, then renamed to "send_configuration". Again, using HW_COMPAT_2_3 for old PC/SPAPR machines, and accel_register_prop() for xen_init().
Removing savevm_skip_configuration().
Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1498536619-14548-8-git-send-email-peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
show more ...
|
3df663e5 | 26-Jun-2017 |
Peter Xu <peterx@redhat.com> |
migration: move only_migratable to MigrationState
One less global variable, and it does only matter with migration.
We keep the old "--only-migratable" option, but also now we support:
-global m
migration: move only_migratable to MigrationState
One less global variable, and it does only matter with migration.
We keep the old "--only-migratable" option, but also now we support:
-global migration.only-migratable=true
Currently still keep the old interface.
Hmm, now vl.c has no way to access migrate_get_current(). Export a function for it to setup only_migratable.
Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1498536619-14548-7-git-send-email-peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
show more ...
|
5272298c | 26-Jun-2017 |
Peter Xu <peterx@redhat.com> |
migration: move global_state.optional out
Put it into MigrationState then we can use the properties to specify whether to enable storing global state.
Removing global_state_set_optional() since now
migration: move global_state.optional out
Put it into MigrationState then we can use the properties to specify whether to enable storing global state.
Removing global_state_set_optional() since now we can use HW_COMPAT_2_3 for x86/power, and AccelClass.global_props for Xen.
Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1498536619-14548-6-git-send-email-peterx@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
show more ...
|
e5cb7e76 | 26-Jun-2017 |
Peter Xu <peterx@redhat.com> |
migration: let MigrationState be a qdev
Let the old man "MigrationState" join the object family. Direct benefit is that we can start to use all the property features derived from current QDev, like:
migration: let MigrationState be a qdev
Let the old man "MigrationState" join the object family. Direct benefit is that we can start to use all the property features derived from current QDev, like: HW_COMPAT_* bits, command line setup for migration parameters (so will never need to set them up each time using HMP/QMP, this is really, really attractive for test writters), etc.
I see no reason to disallow this happen yet. So let's start from this one, to see whether it would be anything good.
Now we init the MigrationState struct statically in main() to make sure it's initialized after global properties are applied, since we'll use them during creation of the object.
No functional change at all.
Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <1498536619-14548-5-git-send-email-peterx@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
show more ...
|
1adc1cee | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Remove unneeded includes
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> |
68a4a2fd | 14-Jun-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Fix compilation with older compilers
That typedefs are needed on both files. New compilers (F25 where I work) don't complain about repeating a typedef. But older ones complain.
Signed-
migration: Fix compilation with older compilers
That typedefs are needed on both files. New compilers (F25 where I work) don't complain about repeating a typedef. But older ones complain.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org>
show more ...
|
252a7a6a | 13-Jun-2017 |
Eric Auger <eric.auger@redhat.com> |
hw/intc/arm_gicv3_its: Allow save/restore
We change the restoration priority of both the GICv3 and ITS. The GICv3 must be restored before the ITS and the ITS needs to be restored before PCIe devices
hw/intc/arm_gicv3_its: Allow save/restore
We change the restoration priority of both the GICv3 and ITS. The GICv3 must be restored before the ITS and the ITS needs to be restored before PCIe devices since it translates their MSI transactions.
Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-id: 1497023553-18411-5-git-send-email-eric.auger@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
show more ...
|
6666c96a | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Move migration.h to migration/
Nothing uses it outside of migration.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by
migration: Move migration.h to migration/
Nothing uses it outside of migration.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
show more ...
|
c4b63b7c | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Move remaining exported functions to migration/misc.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peter
migration: Move remaining exported functions to migration/misc.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peterx@redhat.com>
show more ...
|
84a899de | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: create global_state.c
It don't belong anywhere else, just the global state where everybody can stick other things.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philipp
migration: create global_state.c
It don't belong anywhere else, just the global state where everybody can stick other things.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
show more ...
|
2ce3bf1a | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: ram_control_* are implemented in qemu_file
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <lvivier@re
migration: ram_control_* are implemented in qemu_file
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
show more ...
|
da6f1790 | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Commands are only used inside migration.c
So, move them there. Notice that we export functions that send commands, not the command themselves.
Signed-off-by: Juan Quintela <quintela@red
migration: Commands are only used inside migration.c
So, move them there. Notice that we export functions that send commands, not the command themselves.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
show more ...
|
c3d2e2e7 | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Move constants to savevm.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <lvivier@redhat.com> |
b7722747 | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Move dump_vmsate_json_to_file() to misc.h
It was not from vmstate.c to start with.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org
migration: Move dump_vmsate_json_to_file() to misc.h
It was not from vmstate.c to start with.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
show more ...
|
f2a8f0a6 | 24-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Split registration functions from vmstate.h
They are indpendent, and nowadays almost every device register things with qdev->vmsd.
Signed-off-by: Juan Quintela <quintela@redhat.com> Revi
migration: Split registration functions from vmstate.h
They are indpendent, and nowadays almost every device register things with qdev->vmsd.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peterx@redhat.com>
show more ...
|
f8d806c9 | 21-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Move self_announce_delay() to misc.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peterx@redhat.com> Rev
migration: Move self_announce_delay() to misc.h
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
show more ...
|
1b6e7482 | 24-May-2017 |
Laurent Vivier <lvivier@redhat.com> |
migration: remove register_savevm()
We can replace the four remaining calls of register_savevm() by calls to register_savevm_live(). So we can remove the function and as we don't allocate anymore th
migration: remove register_savevm()
We can replace the four remaining calls of register_savevm() by calls to register_savevm_live(). So we can remove the function and as we don't allocate anymore the ops pointer with g_new0() we don't have to free it then.
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
show more ...
|
2c9e6fec | 21-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Move include/migration/block.h into migration/
All functions were internal, except blk_mig_init() that is exported in misc.h now.
Signed-off-by: Juan Quintela <quintela@redhat.com> Revie
migration: Move include/migration/block.h into migration/
All functions were internal, except blk_mig_init() that is exported in misc.h now.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
show more ...
|
7b1e1a22 | 17-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Export ram.c functions in its own file
All functions are internal except for ram_mig_init(). Create migration/misc.h for this kind of functions.
Signed-off-by: Juan Quintela <quintela@r
migration: Export ram.c functions in its own file
All functions are internal except for ram_mig_init(). Create migration/misc.h for this kind of functions.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
show more ...
|
5e22479a | 20-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Create include for migration snapshots
Start removing migration code from sysemu/sysemu.h.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilber
migration: Create include for migration snapshots
Start removing migration code from sysemu/sysemu.h.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
show more ...
|
e1a3ecee | 17-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Export rdma.c functions in its own file
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> |
41d64227 | 05-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Export tls.c functions in its own file
Just for the functions exported from tls.c. Notice that we can't remove the migration/migration.h include from tls.c because it access directly Mig
migration: Export tls.c functions in its own file
Just for the functions exported from tls.c. Notice that we can't remove the migration/migration.h include from tls.c because it access directly MigrationState for the tls params.
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
show more ...
|
61e8b148 | 05-Apr-2017 |
Juan Quintela <quintela@redhat.com> |
migration: Export socket.c functions in its own file
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> |