diff options
author | Peter Xu <peterx@redhat.com> | 2024-10-24 17:30:53 -0400 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-10-31 15:48:18 -0400 |
commit | 34a8892decdcec13d641f57bcb2a9c35fbc4c07b (patch) | |
tree | 5a057942e618bc129cf61cc62d056ea615740289 /include | |
parent | f018eb62b2bb7618b0cb8a796ac4b76fd786ecaf (diff) | |
download | qemu-34a8892decdcec13d641f57bcb2a9c35fbc4c07b.zip qemu-34a8892decdcec13d641f57bcb2a9c35fbc4c07b.tar.gz qemu-34a8892decdcec13d641f57bcb2a9c35fbc4c07b.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/misc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/migration/misc.h b/include/migration/misc.h index 86ef160..804eb23 100644 --- a/include/migration/misc.h +++ b/include/migration/misc.h @@ -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); |