[libvirt] [PATCH v4 07/12] qemu: Introduce qemuMonitor[JSON]QueryDump
Jiri Denemark
jdenemar at redhat.com
Fri Feb 2 15:35:58 UTC 2018
On Thu, Feb 01, 2018 at 18:24:38 -0500, John Ferlan wrote:
> Add the query-dump API's in order to allow the dump-guest-memory
> to be used to monitor progress. This will use the dump stats
> extraction helper to fill a return buffer.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> src/qemu/qemu_monitor.c | 10 ++++++++++
> src/qemu/qemu_monitor.h | 3 +++
> src/qemu/qemu_monitor_json.c | 39 +++++++++++++++++++++++++++++++++++++++
> src/qemu/qemu_monitor_json.h | 3 +++
> 4 files changed, 55 insertions(+)
>
> diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
> index f4edfc36b..fd19699af 100644
> --- a/src/qemu/qemu_monitor.c
> +++ b/src/qemu/qemu_monitor.c
> @@ -2775,6 +2775,16 @@ qemuMonitorMigrateCancel(qemuMonitorPtr mon)
> }
>
>
> +int
> +qemuMonitorQueryDump(qemuMonitorPtr mon,
> + qemuMonitorDumpStatsPtr stats)
> +{
> + QEMU_CHECK_MONITOR_JSON(mon);
> +
> + return qemuMonitorJSONQueryDump(mon, stats);
> +}
> +
> +
> /**
> * Returns 1 if @capability is supported, 0 if it's not, or -1 on error.
> */
> diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
> index 63b121cb1..59029303e 100644
> --- a/src/qemu/qemu_monitor.h
> +++ b/src/qemu/qemu_monitor.h
> @@ -789,6 +789,9 @@ int qemuMonitorMigrateCancel(qemuMonitorPtr mon);
> int qemuMonitorGetDumpGuestMemoryCapability(qemuMonitorPtr mon,
> const char *capability);
>
> +int qemuMonitorQueryDump(qemuMonitorPtr mon,
> + qemuMonitorDumpStatsPtr);
s/qemuMonitorDumpStatsPtr/qemuMonitorDumpStatsPtr stats/
Reviewed-by: Jiri Denemark <jdenemar at redhat.com>
More information about the libvir-list
mailing list