All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Why is there no qom_get in hmp.c?
@ 2018-04-17 15:51 QingFeng Hao
  2018-04-18 14:04 ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: QingFeng Hao @ 2018-04-17 15:51 UTC (permalink / raw)
  To: qemu block
  Cc: qemu-devel, Kevin Wolf, Max Reitz, Stefan Hajnoczi,
	Christian Borntraeger

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.

Thanks a lot!
-- 
Regards
QingFeng Hao

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Why is there no qom_get in hmp.c?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Dr. David Alan Gilbert @ 2018-04-18 14:04 UTC (permalink / raw)
  To: QingFeng Hao
  Cc: qemu block, Kevin Wolf, Stefan Hajnoczi, qemu-devel,
	Christian Borntraeger, Max Reitz

* 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.

The 'Show values and description when using "qom-list"' patch
that Ricardo Perez Blanco posted would do something similar.

Dave

> Thanks a lot!
> -- 
> Regards
> QingFeng Hao
> 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] Why is there no qom_get in hmp.c?
  2018-04-18 14:04 ` Dr. David Alan Gilbert
@ 2018-04-19  3:27   ` QingFeng Hao
  0 siblings, 0 replies; 3+ messages in thread
From: QingFeng Hao @ 2018-04-19  3:27 UTC (permalink / raw)
  To: Dr. David Alan Gilbert
  Cc: Kevin Wolf, qemu block, Stefan Hajnoczi, qemu-devel, Max Reitz,
	Christian Borntraeger, armbru, berrange



在 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-19  3:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.