Browse Source

dump: Abort in create_win_dump() on non-x86 guests

qmp_dump_guest_memory() checks win_dump_available()
before calling create_win_dump(). On non-x86 targets
calling it would be a programming error, so abort.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20260121215622.92966-2-philmd@linaro.org>
pull/316/head
Philippe Mathieu-Daudé 7 months ago
parent
commit
40b51dd9b4
  1. 2
      dump/win_dump.c

2
dump/win_dump.c

@ -489,7 +489,7 @@ bool win_dump_available(Error **errp)
void create_win_dump(DumpState *s, Error **errp)
{
win_dump_available(errp);
g_assert_not_reached();
}
#endif

Loading…
Cancel
Save