mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
savevm: Live migration handlers register the struct directly
Notice that the live migration users never unregister, so no problem about freeing the ops structure. Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
22ea40f4ff
commit
7908c78d3e
6 changed files with 26 additions and 23 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "qemu-common.h"
|
||||
#include "notify.h"
|
||||
#include "error.h"
|
||||
#include "vmstate.h"
|
||||
|
||||
struct MigrationParams {
|
||||
bool blk;
|
||||
|
@ -81,8 +82,7 @@ uint64_t ram_bytes_remaining(void);
|
|||
uint64_t ram_bytes_transferred(void);
|
||||
uint64_t ram_bytes_total(void);
|
||||
|
||||
int ram_save_live(QEMUFile *f, int stage, void *opaque);
|
||||
int ram_load(QEMUFile *f, void *opaque, int version_id);
|
||||
extern SaveVMHandlers savevm_ram_handlers;
|
||||
|
||||
/**
|
||||
* @migrate_add_blocker - prevent migration from proceeding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue