A few patches that are standalone enough which originated from my work in progress on new way to do vcpu hotplug. Peter Krempa (10): qemu: monitor: Add monitor API for device_add supporting JSON objects internal: Introduce macro for stealing pointers qemu: monitor: Add do-while block to QEMU_CHECK_MONITOR_FULL qemu: Improve error message in virDomainGetVcpus qemu: domain: Rename qemuDomainDetectVcpuPids to qemuDomainRefreshVcpuInfo qemu: monitor: Rename qemuMonitor(JSON|Text)GetCPUInfo qemu: domain: Improve vCPU data checking in qemuDomainDetectVcpuPids qemu: domain: Simplify return values of qemuDomainRefreshVcpuInfo qemu: monitor: Return structures from qemuMonitorGetCPUInfo qemu: monitor: Return struct from qemuMonitor(Text|Json)QueryCPUs src/internal.h | 12 +++++ src/qemu/qemu_domain.c | 95 ++++++++++++++++++++++++------------- src/qemu/qemu_domain.h | 6 ++- src/qemu/qemu_driver.c | 25 +++++----- src/qemu/qemu_monitor.c | 110 ++++++++++++++++++++++++++++++++++++------- src/qemu/qemu_monitor.h | 21 ++++++++- src/qemu/qemu_monitor_json.c | 103 ++++++++++++++++++++++------------------ src/qemu/qemu_monitor_json.h | 6 ++- src/qemu/qemu_monitor_text.c | 40 ++++++++-------- src/qemu/qemu_monitor_text.h | 4 +- src/qemu/qemu_process.c | 12 +++-- tests/qemumonitorjsontest.c | 35 ++++++++++---- 12 files changed, 316 insertions(+), 153 deletions(-) -- 2.9.2 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list