@@ -1974,7 +1974,7 @@ static int htab_save_later_pass(QEMUFile *f, sPAPRMachineState *spapr,
#define MAX_ITERATION_NS 5000000 /* 5 ms */
#define MAX_KVM_BUF_SIZE 2048
-static int htab_save_iterate(QEMUFile *f, void *opaque)
+static int htab_save_iterate(QEMUFile *f, void *opaque, int section_id)
{
sPAPRMachineState *spapr = opaque;
int fd;
@@ -246,7 +246,7 @@ static int cmma_save(QEMUFile *f, void *opaque, int final)
return ret;
}
-static int cmma_save_iterate(QEMUFile *f, void *opaque)
+static int cmma_save_iterate(QEMUFile *f, void *opaque, int section_id)
{
return cmma_save(f, opaque, 0);
}
@@ -31,7 +31,7 @@ typedef struct SaveVMHandlers {
* use data that is local to the migration thread or protected
* by other locks.
*/
- int (*save_live_iterate)(QEMUFile *f, void *opaque);
+ int (*save_live_iterate)(QEMUFile *f, void *opaque, int section_id);
/* This runs outside the iothread lock! */
int (*save_setup)(QEMUFile *f, void *opaque);
@@ -755,7 +755,7 @@ static int block_save_setup(QEMUFile *f, void *opaque)
return ret;
}
-static int block_save_iterate(QEMUFile *f, void *opaque)
+static int block_save_iterate(QEMUFile *f, void *opaque, int section_id)
{
int ret;
int64_t last_ftell = qemu_ftell(f);
@@ -2249,7 +2249,7 @@ static int ram_save_setup(QEMUFile *f, void *opaque)
* @f: QEMUFile where to send the data
* @opaque: RAMState pointer
*/
-static int ram_save_iterate(QEMUFile *f, void *opaque)
+static int ram_save_iterate(QEMUFile *f, void *opaque, int section_id)
{
RAMState **temp = opaque;
RAMState *rs = *temp;
@@ -1072,7 +1072,7 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy)
save_section_header(f, se, QEMU_VM_SECTION_PART);
- ret = se->ops->save_live_iterate(f, se->opaque);
+ ret = se->ops->save_live_iterate(f, se->opaque, se->section_id);
trace_savevm_section_end(se->idstr, se->section_id, ret);
save_section_footer(f, se);