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>
This commit is contained in:
Philippe Mathieu-Daudé
2026-01-07 18:46:15 +01:00
parent da38740554
commit 40b51dd9b4

View File

@@ -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