[libvirt] [PATCH 07/22] qemu: Introduce qemuMonitorCPUDefs struct

Ján Tomko jtomko at redhat.com
Mon Oct 7 14:18:42 UTC 2019


On Thu, Oct 03, 2019 at 04:00:25PM +0200, Jiri Denemark wrote:
>It is a container for a CPU models list (qemuMonitorCPUDefInfo) and a
>number of elements in this list.
>

Surely introducing a new type with VIR_AUTOFREE_FUNC defined and not
using it would look strange.

But all the goto cleanup -> return -1 changes could be separated.

>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
> src/qemu/qemu_capabilities.c | 24 ++++++----------
> src/qemu/qemu_monitor.c      | 39 +++++++++++++++++++------
> src/qemu/qemu_monitor.h      | 14 +++++++--
> src/qemu/qemu_monitor_json.c | 56 ++++++++++++++----------------------
> src/qemu/qemu_monitor_json.h |  2 +-
> tests/qemumonitorjsontest.c  | 38 +++++++++---------------
> 6 files changed, 89 insertions(+), 84 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191007/cc779c92/attachment-0001.sig>


More information about the libvir-list mailing list