migration: Cleanup qemu_savevm_state_complete_precopy()
Now qemu_savevm_state_complete_precopy() is never used in postcopy, clean it up as in_postcopy==false now unconditionally. Signed-off-by: Peter Xu <peterx@redhat.com> Tested-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Juraj Marcin <jmarcin@redhat.com> Link: https://lore.kernel.org/r/20250114230746.3268797-14-peterx@redhat.com Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
15c2ffa0b7
commit
455c1963d3
@ -1577,25 +1577,19 @@ int qemu_savevm_state_complete_precopy_non_iterable(QEMUFile *f,
|
|||||||
int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only)
|
int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
bool in_postcopy = migration_in_postcopy();
|
|
||||||
|
|
||||||
if (!in_postcopy || iterable_only) {
|
ret = qemu_savevm_state_complete_precopy_iterable(f, false);
|
||||||
ret = qemu_savevm_state_complete_precopy_iterable(f, in_postcopy);
|
if (ret) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!iterable_only) {
|
||||||
|
ret = qemu_savevm_state_complete_precopy_non_iterable(f, false);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iterable_only) {
|
|
||||||
goto flush;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = qemu_savevm_state_complete_precopy_non_iterable(f, in_postcopy);
|
|
||||||
if (ret) {
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
flush:
|
|
||||||
return qemu_fflush(f);
|
return qemu_fflush(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user