From: Gonglei <arei.gong...@huawei.com> At present, people have no way to know they should have a specific format for alias properties.
Example: before output: virtio-blk-pci.physical_block_size=uint16 virtio-blk-pci.logical_block_size=uint16 virtio-blk-pci.drive=str after output applied this patch series: virtio-blk-pci.physical_block_size=blocksize virtio-blk-pci.logical_block_size=blocksize virtio-blk-pci.drive=drive v2 -> v1: - free prop when error is happened PATCH 1/3. - move AliasProperty strut to Object.h, object_property_add_alias() API allows objects to alias a property on the same object or another object. The source and target names can be different, we should address this scenario. - add 'Reviewed-by' (PATCH 1/3) and 'Acked-by' (PATCH 3/3) tags, hope Paolo and Michael don't mind about those changes. Thanks. :) Gonglei (3): qom: add error handler for object alias property qom: add AliasProperty struct poniter for alias property in ObjectProperty qmp: print real legacy_name for alias property include/qom/object.h | 8 ++++++ qmp.c | 79 +++++++++++++++++++++++++++++++++++++--------------- qom/object.c | 16 +++++++---- 3 files changed, 74 insertions(+), 29 deletions(-) -- 1.7.12.4