When '-machine help' is given, report the security status of each
machine.
Signed-off-by: Daniel P. Berrangé <[email protected]>
---
system/vl.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/system/vl.c b/system/vl.c
index 3b7057e6c6..0695af433f 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -1578,9 +1578,11 @@ 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%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)" : "",
+ object_class_is_insecure(OBJECT_CLASS(mc)) ? " (insecure)" :
"");
}
}
--
2.50.1