mirror of
https://github.com/qemu/qemu.git
synced 2026-04-05 22:00:58 +00:00
ram: Remove colo special-casing
We only enter colo state after the precopy migration is finished so this if is always taken. Reviewed-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Lukas Straub <lukasstraub2@web.de> Link: https://lore.kernel.org/qemu-devel/20260302-colo_unit_test_multifd-v11-6-d653fb3b1d80@web.de Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
committed by
Fabiano Rosas
parent
af4cee59fa
commit
9489a40184
@@ -3116,12 +3116,12 @@ static int ram_save_setup(QEMUFile *f, void *opaque, Error **errp)
|
||||
RAMBlock *block;
|
||||
int ret, max_hg_page_size;
|
||||
|
||||
/* migration has already setup the bitmap, reuse it. */
|
||||
if (!migration_in_colo_state()) {
|
||||
if (ram_init_all(rsp, errp) != 0) {
|
||||
return -1;
|
||||
}
|
||||
assert(!migration_in_colo_state());
|
||||
|
||||
if (ram_init_all(rsp, errp) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
(*rsp)->pss[RAM_CHANNEL_PRECOPY].pss_channel = f;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user