mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qapi: Inline and remove QERR_MIGRATION_ACTIVE definition
Address the comment added in commit4629ed1e98
("qerror: Finally unused, clean up"), from 2015: /* * These macros will go away, please don't use * in new code, and do not add new ones! */ Mechanical transformation using sed, manually removing the definition in include/qapi/qmp/qerror.h. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240312141343.3168265-10-armbru@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> [Straightforward conflict with commitaeaafb1e59
(migration: export migration_is_running) resolved]
This commit is contained in:
parent
45d19d9306
commit
005807860d
4 changed files with 4 additions and 7 deletions
|
@ -1956,7 +1956,7 @@ static bool migrate_prepare(MigrationState *s, bool blk, bool blk_inc,
|
|||
}
|
||||
|
||||
if (migration_is_running()) {
|
||||
error_setg(errp, QERR_MIGRATION_ACTIVE);
|
||||
error_setg(errp, "There's a migration process in progress");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue