[libvirt] [PATCH v5 09/10] qemu: Allow showing the dump progress for memory only dump

Jiri Denemark jdenemar at redhat.com
Mon Feb 5 15:56:35 UTC 2018


On Fri, Feb 02, 2018 at 17:40:17 -0500, John Ferlan wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=916061
> 
> If the QEMU version running is new enough (based on the DUMP_COMPLETED
> event), then we can add a 'detach' boolean to the dump-guest-memory
> command in order to tell QEMU to run in a thread. This ensures that we
> don't lock out other commands while the potentially long running dump
> memory is completed.
> 
> This allows the usage of a qemuDumpWaitForCompletion which will wait
> for the event while the qemuDomainGetJobInfoDumpStats can be used via
> qemuDomainGetJobInfo in order to query QEMU to determine how far along
> the job is.
> 
> Now that we have a true async job, we'll only set the dump_memory_only
> flag only when @detach=false; otherwise, we note that the job is a
> for stats dump this allows the opposite end for job info to determine
> what to copy.
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/qemu/qemu_driver.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++----
>  1 file changed, 60 insertions(+), 5 deletions(-)

Reviewed-by: Jiri Denemark <jdenemar at redhat.com>




More information about the libvir-list mailing list