When '-device help', 'device_add help' and 'info qdm' are used, report the security status of each device.
Signed-off-by: Daniel P. Berrangé <[email protected]> --- system/qdev-monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/qdev-monitor.c b/system/qdev-monitor.c index a69dbf802f..2120292fd5 100644 --- a/system/qdev-monitor.c +++ b/system/qdev-monitor.c @@ -166,6 +166,9 @@ 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"); + } qemu_printf("\n"); } -- 2.55.0
