[libvirt] [REBASE PATCH v2 1/9] qemu: Add support for DUMP_COMPLETED event
Jiri Denemark
jdenemar at redhat.com
Fri Jan 26 14:11:37 UTC 2018
On Fri, Jan 26, 2018 at 08:43:38 -0500, John Ferlan wrote:
>
>
> On 01/25/2018 11:59 AM, Jiri Denemark wrote:
> > On Fri, Jan 19, 2018 at 14:53:08 -0500, John Ferlan wrote:
> >> The event is fired when the domain memory only dump completes.
> >>
> >> Wire up the code to extract and send along the status.
> >>
> >> Signed-off-by: John Ferlan <jferlan at redhat.com>
> >> ---
> >> src/qemu/qemu_monitor.c | 18 ++++++++++++++++++
> >> src/qemu/qemu_monitor.h | 19 +++++++++++++++++++
> >> src/qemu/qemu_monitor_json.c | 31 +++++++++++++++++++++++++++++++
> >> 3 files changed, 68 insertions(+)
...
> > According to qapi-schema the DUMP_COMPLETED event may contain an error
> > string. Don't we want to consume it here too?
>
> We could I suppose, passing it back through like EmitBlockJob and
> BlockJobCallback.
I believe you wanted to say s/BlockJob/Dump/...
> Once I page all this code back into short term memory (Nov. seems so
> long ago), I'll work through the other comments as well and post a
> new version.
Yeah, sorry about the delayed review. More priority stuff (such as
holiday and Spectre) appeared.
> I'm trying to think about the common stats parser right now and how to
> handle errors as the dump completed event code would use VIR_WARN when
> failing to parse the result, but the query code would use virReportError
I think you can just use virReportError and discard the error in the
dump completed event code.
Jirka
More information about the libvir-list
mailing list