migration: I messed state_pending_exact/estimate
PATCH 1/1 migration: I messed state_pending_exact/estimate
And called then in the wrong place.
Thanks to Avihai Horon <[email protected]> for finding it.
Signed-off-by Juan Quintela <[email protected]>
--- migration/savevm.c | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-)
migration/savevm.c +25 -25
@@ -1551,31 +1551,6 @@ void qemu_savevm_state_pending_estimate(uint64_t *res_precopy_only, *res_compatible =0 ; *res_postcopy_only =0 ; - QTAILQ_FOREACH(se, &savevm_state.handlers, entry) { -if (!se->ops || !se->ops->state_pending_exact) { -continue ; - } -if (se->ops->is_active) { -if (!se->ops->is_active (se->opaque)) { -continue ; - } - } - se->ops->state_pending_exact (se->opaque, - res_precopy_only, res_compatible, - res_postcopy_only); - } -} - -void qemu_savevm_state_pending_exact (uint64_t *res_precopy_only, -uint64_t *res_compatible, -uint64_t *res_postcopy_only) -{ -SaveStateEntry *se; - - *res_precopy_only =0 ; - *res_compatible =0 ; - *res_postcopy_only =0 ; - QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {if (!se->ops || !se->ops->state_pending_estimate) {continue ;
@@ -1591,6 +1566,31 @@ void qemu_savevm_state_pending_exact(uint64_t *res_precopy_only, } } +void qemu_savevm_state_pending_exact (uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) +{ +SaveStateEntry *se; + + *res_precopy_only =0 ; + *res_compatible =0 ; + *res_postcopy_only =0 ; + + QTAILQ_FOREACH(se, &savevm_state.handlers, entry) { +if (!se->ops || !se->ops->state_pending_exact) { +continue ; + } +if (se->ops->is_active) { +if (!se->ops->is_active (se->opaque)) { +continue ; + } + } + se->ops->state_pending_exact (se->opaque, + res_precopy_only, res_compatible, + res_postcopy_only); + } +} +void qemu_savevm_state_cleanup (void ) {SaveStateEntry *se;
Signature · 1 line
2.39.1
Juan Quintela
NAKQuoted 5 lines · Juan Quintela
And called then in the wrong place.
Thanks to Avihai Horon <[email protected]> for finding it.
Signed-off-by Juan Quintela <[email protected]>
Nack.
Sent another version with the commit information when the messed up camed in.