From: QingFeng Hao <haoqf@linux.vnet.ibm.com>
To: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, qemu block <qemu-block@nongnu.org>,
Stefan Hajnoczi <stefanha@gmail.com>,
qemu-devel <qemu-devel@nongnu.org>, Max Reitz <mreitz@redhat.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
armbru@redhat.com, berrange@redhat.com
Subject: Re: [Qemu-devel] Why is there no qom_get in hmp.c?
Date: Thu, 19 Apr 2018 11:27:18 +0800 [thread overview]
Message-ID: <3c7d3fa5-f8be-bf8d-c855-70985d035231@linux.vnet.ibm.com> (raw)
In-Reply-To: <20180418140458.GA2723@work-vm>
在 2018/4/18 22:04, Dr. David Alan Gilbert 写道:
> * QingFeng Hao (haoqf@linux.vnet.ibm.com) wrote:
>> Hi all,
>> I did some investigation and found that "virsh qemu-monitor-command" supports qom-get,
>> but qemu hmp doesn't. However, in hmp.c there are qom_list and qom_set. It confused me
>> and my question is: why is this? And how can I get a property's value in hmp? e.g.
>> qemu-system-* -nodefaults -machine accel=qtest -no-shutdown -nographic -monitor stdio -serial none -hda /root/t.qcow2
>> "info qtree" can only get a few properties.
>
> I did try that in 2016 (see my series from about September); but it got
> bogged down in trying to fix output visitors; it's possible the visitor
> code has been fixed since then though.
>
Thanks! I used your patch with a bit fix of compilation to test, which can work and
print the json format string for structure property. The prior discussions seem
no any eventual conclusion with some tricks.
> The 'Show values and description when using "qom-list"' patch
> that Ricardo Perez Blanco posted would do something similar.
Yes, I saw the patch. thanks
>
> Dave
>
>> Thanks a lot!
>> --
>> Regards
>> QingFeng Hao
>>
>>
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
>
--
Regards
QingFeng Hao
prev parent reply other threads:[~2018-04-19 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 15:51 [Qemu-devel] Why is there no qom_get in hmp.c? QingFeng Hao
2018-04-18 14:04 ` Dr. David Alan Gilbert
2018-04-19 3:27 ` QingFeng Hao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3c7d3fa5-f8be-bf8d-c855-70985d035231@linux.vnet.ibm.com \
--to=haoqf@linux.vnet.ibm.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=dgilbert@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).