qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0/2] qom-get [for 2.8]


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 0/2] qom-get [for 2.8]
Date: Tue, 6 Sep 2016 09:22:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0


On 05/09/2016 20:50, Dr. David Alan Gilbert wrote:
> * Paolo Bonzini (address@hidden) wrote:
>>
>>
>> On 25/08/2016 11:37, Dr. David Alan Gilbert (git) wrote:
>>>
>>> (qemu) qom-get /backend/console[0]/device/vga.rom[0] size
>>> 65536 (0x10000)
>>>
>>> (qemu) qom-get /machine smm
>>> "auto"
>>>
>>> (qemu) qom-get /machine rtc-time
>>> struct type not implemented
>>
>> Looks nice.  Perhaps instead of using the "human" interface we could
>> just print it as JSON and avoid the error.
> 
> I can't see a sane place to glue a fallback to the JSON code in;
> or do you mean use the JSON output even in the simple case?

Yeah.  I think it makes sense for a low level command such as qom-get.
All that you lose is the automatic hex conversion in the first example.

Paolo



reply via email to

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