migration: never fail in global_state_store()
commitc33f1829f891058442e9670325decff0c8a2e28c
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Wed, 17 May 2023 12:37:49 +0000 (17 15:37 +0300)
committerJuan Quintela <quintela@redhat.com>
Thu, 1 Jun 2023 23:03:19 +0000 (2 01:03 +0200)
tree27ba73fcd8e8ae2a56bc1edbbec326a86615fac8
parent242b74eb69d0e53b25e294331a192b7a458b8e46
migration: never fail in global_state_store()

Actually global_state_store() can never fail. Let's get rid of extra
error paths.

To make things clear, use new runstate_get() and use same approach for
global_state_store() and global_state_store_running().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20230517123752.21615-3-vsementsov@yandex-team.ru>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/global_state.h
migration/global_state.c
migration/migration.c
migration/savevm.c