[libvirt] [PATCH v3 02/24] qemu: monitor: Return struct from qemuMonitor(Text|Json)QueryCPUs

Ján Tomko jtomko at redhat.com
Wed Aug 24 14:03:18 UTC 2016


On Wed, Aug 24, 2016 at 09:35:18AM -0400, Peter Krempa wrote:
>Prepare to extract more data by returning a array of structs rather than
*an array

>just an array of thread ids. Additionally report fatal errors separately
>from qemu not being able to produce data.
>---
>
>Notes:
>    v3:
>    - fixed uninitialized variable in tests
>    v2:
>    - initialized ncpus in qemuMonitorTextQueryCPUs
>    - fixed return value on alloc fail
>
> src/qemu/qemu_monitor.c      | 31 ++++++++++++------
> src/qemu/qemu_monitor.h      |  6 ++++
> src/qemu/qemu_monitor_json.c | 77 +++++++++++++++++++++++---------------------
> src/qemu/qemu_monitor_json.h |  3 +-
> src/qemu/qemu_monitor_text.c | 41 +++++++++++------------
> src/qemu/qemu_monitor_text.h |  3 +-
> tests/qemumonitorjsontest.c  | 39 +++++++++++++++-------
> 7 files changed, 121 insertions(+), 79 deletions(-)
>

ACK

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160824/bc2c416f/attachment-0001.sig>


More information about the libvir-list mailing list