summaryrefslogtreecommitdiffstats
path: root/vmstate.h
Commit message (Collapse)AuthorAgeFilesLines
* vmstate: add VMSTATE_TIMER_VPaolo Bonzini2012-09-101-1/+4
| | | | | | | | Also, for consistency with other occurrences, implement VMSTATE_TIMER as a special case of VMSTATE_TIMER_V rather than VMSTATE_TIMER_TEST. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* savevm: split save_live into stage2 and stage3Juan Quintela2012-07-201-1/+2
| | | | | | | | We split it into 2 functions, foo_live_iterate, and foo_live_complete. At this point, we only remove the bits that are for the other stage, functionally this is equivalent to previous code. Signed-off-by: Juan Quintela <quintela@redhat.com>
* savevm: split save_live_setup from save_live_stateJuan Quintela2012-07-201-0/+1
| | | | | | | | This patch splits stage 1 to its own function for both save_live users, ram and block. It is just a copy of the function, removing the parts of the other stages. Optimizations would came later. Signed-off-by: Juan Quintela <quintela@redhat.com>
* savevm: introduce is_active methodJuan Quintela2012-07-201-0/+1
| | | | | | | | | Enable the creation of a method to tell migration if that section is active and should be migrate. We use it for blk-migration, that is normally not active. We don't create the method for RAM, as setups without RAM are very strange O:-) Signed-off-by: Juan Quintela <quintela@redhat.com>
* savevm: Refactor cancel operation in its own operationJuan Quintela2012-07-201-0/+1
| | | | | | Intead of abusing stage with value -1. Signed-off-by: Juan Quintela <quintela@redhat.com>
* savevm: remove SaveLiveStateHandlerJuan Quintela2012-07-201-2/+1Star
| | | | | | It was used only once, just unfold. Signed-off-by: Juan Quintela <quintela@redhat.com>
* savevm: remove SaveSetParamsHandlerJuan Quintela2012-07-201-2/+1Star
| | | | | | It was used only once, just unfold. Signed-off-by: Juan Quintela <quintela@redhat.com>
* savevm: Live migration handlers register the struct directlyJuan Quintela2012-07-201-4/+1Star
| | | | | | | Notice that the live migration users never unregister, so no problem about freeing the ops structure. Signed-off-by: Juan Quintela <quintela@redhat.com>
* savevm: Use a struct to pass all handlersJuan Quintela2012-07-201-0/+7
| | | | | | This would make easier to add more operations in the next patches. Signed-off-by: Juan Quintela <quintela@redhat.com>
* Add MigrationParams structureIsaku Yamahata2012-06-291-1/+1
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Purge migration of (almost) everything to do with monitorsLuiz Capitulino2012-03-151-2/+1Star
| | | | | | | | | | | | | | | | | The Monitor object is passed back and forth within the migration/savevm code so that it can print errors and progress to the user. However, that approach assumes a HMP monitor, being completely invalid in QMP. This commit drops almost every single usage of the Monitor object, all monitor_printf() calls have been converted into DPRINTF() ones. There are a few remaining Monitor objects, those are going to be dropped by the next commit. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
* vmstate: extract declarations out of hw/hw.hPaolo Bonzini2012-01-131-0/+618
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>