]> git.proxmox.com Git - mirror_qemu.git/commit
replay: Simplify setting replay blockers
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 Feb 2023 07:51:12 +0000 (08:51 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 23 Feb 2023 13:10:17 +0000 (14:10 +0100)
commit0ec8384f839844dfcccdc4784b30c9c9e7171b92
tree7863d1708e7d65974959db861abbf7f4ab895d7a
parentc40233593ed5732de1676412527e42431e33e62c
replay: Simplify setting replay blockers

replay_add_blocker() takes an Error *.  All callers pass one created
like this:

    error_setg(&blocker, QERR_REPLAY_NOT_SUPPORTED, "some feature");

Folding this into replay_add_blocker() simplifies the callers, losing
a bit of generality we haven't needed in more than six years.

Since there are no other uses of macro QERR_REPLAY_NOT_SUPPORTED,
replace the remaining one by its expansion, and drop the macro.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230207075115.1525-10-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
include/qapi/qmp/qerror.h
include/sysemu/replay.h
replay/replay.c
replay/stubs-system.c
softmmu/rtc.c
softmmu/vl.c