When '-device help' is given, report the security status of each
device.
Signed-off-by: Daniel P. Berrangé <[email protected]>
---
system/qdev-monitor.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/system/qdev-monitor.c b/system/qdev-monitor.c
index f99907a311..db34b83923 100644
--- a/system/qdev-monitor.c
+++ b/system/qdev-monitor.c
@@ -164,6 +164,12 @@ static void qdev_print_devinfo(DeviceClass *dc)
if (!dc->user_creatable) {
qemu_printf(", no-user");
}
+ if (object_class_is_secure(OBJECT_CLASS(dc))) {
+ qemu_printf(", secure");
+ }
+ if (object_class_is_insecure(OBJECT_CLASS(dc))) {
+ qemu_printf(", insecure");
+ }
qemu_printf("\n");
}
--
2.50.1