Il 23/09/2014 15:08, arei.gong...@huawei.com ha scritto: > From: Gonglei <arei.gong...@huawei.com> > > When we call qdev_alias_all_properties() adding alias properties to > the source object all qdev properties on the target DeviceState, > set the object property's description to the qdev property's. > > c: Paolo Bonzini <pbonz...@redhat.com> > Cc: Michael S. Tsirkin <m...@redhat.com> > Cc: Markus Armbruster <arm...@redhat.com> > Signed-off-by: Gonglei <arei.gong...@huawei.com> > --- > hw/core/qdev.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/hw/core/qdev.c b/hw/core/qdev.c > index fcb1638..61d352c 100644 > --- a/hw/core/qdev.c > +++ b/hw/core/qdev.c > @@ -796,6 +796,9 @@ void qdev_alias_all_properties(DeviceState *target, > Object *source) > object_property_add_alias(source, prop->name, > OBJECT(target), prop->name, > &error_abort); > + object_property_set_description(source, prop->name, > + prop->info->description, > + &error_abort);
Please do this directly in object_property_add_alias. Paolo > } > class = object_class_get_parent(class); > } while (class != object_class_by_name(TYPE_DEVICE)); >