qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH qemu v4 1/2] qmp: Merge ObjectPropertyInfo and D


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH qemu v4 1/2] qmp: Merge ObjectPropertyInfo and DevicePropertyInfo
Date: Mon, 30 Apr 2018 12:04:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 18/04/2018 18:35, Eric Blake wrote:
> On 03/02/2018 06:25 PM, Alexey Kardashevskiy wrote:
>> ObjectPropertyInfo is more generic and only missing @description.
>> This adds a description to ObjectPropertyInfo and removes
>> DevicePropertyInfo so the resulting ObjectPropertyInfo can be used
>> elsewhere.
>>
>> Signed-off-by: Alexey Kardashevskiy <address@hidden>
>> ---
>> Changes:
>> v4:
>> * added (since 2.12) to the new field
> 
> And since it missed 2.12,

It is in 2.12:

commit 961c47bb8bacc9ae21c0760fa6e2594156299dd7
Author: Alexey Kardashevskiy <address@hidden>
Date:   Fri Mar 2 00:09:39 2018 +1100

    qmp: Add qom-list-properties to list QOM object properties
    
    There is already 'device-list-properties' which does most of the job,
    however it does not handle everything returned by qom-list-types such
    as machines as they inherit directly from TYPE_OBJECT and not TYPE_DEVICE.
    It does not handle abstract classes either.
    
    This adds a new qom-list-properties command which prints properties
    of a specific class and its instance. It is pretty much a simplified copy
    of the device-list-properties handler.
    
    Since it creates an object instance, device properties should appear
    in the output as they are copied to QOM properties at the instance_init
    hook.
    
    This adds a object_class_property_iter_init() helper to allow class
    properties enumeration uses it in the new QMP command to allow properties
    listing for abstract classes.
    
    Signed-off-by: Alexey Kardashevskiy <address@hidden>
    Message-Id: <address@hidden>
    Signed-off-by: Paolo Bonzini <address@hidden>

commit 35f63767dc77d85bebff6c6565aceaf74023776a
Author: Alexey Kardashevskiy <address@hidden>
Date:   Fri Mar 2 00:09:38 2018 +1100

    qmp: Merge ObjectPropertyInfo and DevicePropertyInfo
    
    ObjectPropertyInfo is more generic and only missing @description.
    This adds a description to ObjectPropertyInfo and removes
    DevicePropertyInfo so the resulting ObjectPropertyInfo can be used
    elsewhere.
    
    Signed-off-by: Alexey Kardashevskiy <address@hidden>
    Message-Id: <address@hidden>
    Signed-off-by: Paolo Bonzini <address@hidden>

Thanks,

Paolo

>> * removed wrong reindents
>> ---
>>  qapi-schema.json | 23 +++++------------------
>>  qdev-monitor.c   |  6 +++---
>>  qmp.c            | 14 +++++++-------
>>  3 files changed, 15 insertions(+), 28 deletions(-)
>>
>> diff --git a/qapi-schema.json b/qapi-schema.json
>> index 0262b9f..5cdf89a 100644
>> --- a/qapi-schema.json
>> +++ b/qapi-schema.json
>> @@ -1266,10 +1266,12 @@
>>  #        3) A link type in the form 'link<subtype>' where subtype is a qdev
>>  #           device type name.  Link properties form the device model graph.
>>  #
>> +# @description: if specified, the description of the property (since 2.12).
> 
> this should be tweaked to say since 2.13.
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]