]> www.infradead.org Git - users/dwmw2/qemu.git/commit
migration: Drop migration_is_idle()
authorPeter Xu <peterx@redhat.com>
Thu, 24 Oct 2024 21:30:53 +0000 (17:30 -0400)
committerPeter Xu <peterx@redhat.com>
Thu, 31 Oct 2024 19:48:18 +0000 (15:48 -0400)
commit34a8892decdcec13d641f57bcb2a9c35fbc4c07b
tree5a057942e618bc129cf61cc62d056ea615740289
parentf018eb62b2bb7618b0cb8a796ac4b76fd786ecaf
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>
hw/virtio/virtio-mem.c
include/migration/misc.h
migration/migration.c
migration/ram.c
system/qdev-monitor.c