mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
migration: Drop migration_is_idle()
Now with the current migration_is_running(), it will report exactly the opposite of what will be reported by migration_is_idle(). Drop migration_is_idle(), instead use "!migration_is_running()" which should be identical on functionality. In reality, most of the idle check is inverted, so it's even easier to write with "migrate_is_running()" check. Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20241024213056.1395400-6-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
f018eb62b2
commit
34a8892dec
5 changed files with 5 additions and 25 deletions
|
@ -53,7 +53,6 @@ void dump_vmstate_json_to_file(FILE *out_fp);
|
|||
void migration_object_init(void);
|
||||
void migration_shutdown(void);
|
||||
|
||||
bool migration_is_idle(void);
|
||||
bool migration_is_active(void);
|
||||
bool migration_is_device(void);
|
||||
bool migration_is_running(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue