system: report machine security status in help output

When '-machine help' is given, report the security status of each
machine.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé committed 2026-09-17 17:00:44 +01:00
1 parent cdf00fb2f6
commit 3fa876d489
1 file changed
+3 -2
+3 -2
View File
@@ -1586,9 +1586,10 @@ static void machine_help_func(const QDict *qdict)
if (mc->alias) {
printf("%-20s %s (alias of %s)\n", mc->alias, mc->desc, mc->name);
}
printf("%-20s %s%s%s\n", mc->name, mc->desc,
printf("%-20s %s%s%s%s\n", mc->name, mc->desc,
mc->is_default ? " (default)" : "",
mc->deprecation_reason ? " (deprecated)" : "");
mc->deprecation_reason ? " (deprecated)" : "",
object_class_is_secure(OBJECT_CLASS(mc)) ? " (secure)" : "");
}
}