Daniel P. Berrangé <[email protected]> writes: > When '-device help' is given, report the security status of each > device.
Affects not just "-device help" and "device_add help", but also "info qdm". > 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 520fe5c495..86ae64dccd 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"); > }
