Re: [PATCH v3 12/20] Add a qemuMonitorGetCommands() method for QMP query-commands command

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

 



On 09/25/2012 12:00 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Add a new qemuMonitorGetCPUCommands() method to support invocation
> of the 'query-cpu-definitions' JSON monitor command. No HMP equivalent

s/cpu-definitions/commands/

> is required, since this will only be used when JSON is available
> 
> The existing qemuMonitorJSONCheckCommands() method is refactored
> to use this new method
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  src/qemu/qemu_monitor.c      |  22 +++++++++
>  src/qemu/qemu_monitor.h      |   3 ++
>  src/qemu/qemu_monitor_json.c | 114 +++++++++++++++++++++++++++++++------------
>  src/qemu/qemu_monitor_json.h |   4 ++
>  tests/qemumonitorjsontest.c  |  62 +++++++++++++++++++++++
>  5 files changed, 175 insertions(+), 30 deletions(-)

As qemu gains more and more commands, is it worth qsort()ing the list
before returning it, so later users can bsearch() for O(logN) instead of
O(N) searching for a particular command?  But that can be a later patch.

ACK once you fix this syntax check failure:

prohibit_empty_lines_at_EOF
src/qemu/qemu_monitor_json.c
maint.mk: empty line(s) or no newline at EOF
make: *** [sc_prohibit_empty_lines_at_EOF] Error 1

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]