replay: Improve error messages about configuration conflicts
authorMarkus Armbruster <armbru@redhat.com>
Fri, 1 Mar 2024 12:06:41 +0000 (13:06 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 9 Mar 2024 15:56:36 +0000 (18:56 +0300)
Improve

   Record/replay feature is not supported for '-rtc base=localtime'
   Record/replay feature is not supported for 'smp'
   Record/replay feature is not supported for '-snapshot'

to

   Record/replay is not supported with -rtc base=localtime
   Record/replay is not supported with multiple CPUs
   Record/replay is not supported with -snapshot

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
replay/replay.c
system/vl.c

index 3fd241a4fccc229291b794f4f6d26be02bb332d9..a2c576c16e74621d2019b97b4eb4d1d05076c663 100644 (file)
@@ -511,7 +511,7 @@ void replay_add_blocker(const char *feature)
 {
     Error *reason = NULL;
 
-    error_setg(&reason, "Record/replay feature is not supported for '%s'",
+    error_setg(&reason, "Record/replay is not supported with %s",
                feature);
     replay_blockers = g_slist_prepend(replay_blockers, reason);
 }
index 48aae6e0530b6ce84a213b94fcd24e9f2293b889..70f4cece7f986f77391c7644f26aa407ed68ac8a 100644 (file)
@@ -1932,7 +1932,7 @@ static void qemu_apply_machine_options(QDict *qdict)
     }
 
     if (current_machine->smp.cpus > 1) {
-        replay_add_blocker("smp");
+        replay_add_blocker("multiple CPUs");
     }
 }