Re: [PATCH 1/2] Avoid blocking all APIs during incoming migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/24/2010 01:47 PM, Daniel P. Berrange wrote:
> During incoming migration the QEMU monitor is not able to be
> used. The incoming migration code did not keep hold of the
> job lock because migration is split across multiple API calls.
> This meant that further monitor commands on the guest would
> hang until migration finished with no timeout.
> 
> In this change the qemuDomainMigratePrepare method sets the
> job flag just before it returns. The qemuDomainMigrateFinish
> method checks for this job flag & clears it once done. This
> prevents any use of the monitor between prepare+finish steps.
> 
> The qemuDomainGetJobInfo method is also updated to refresh
> the job elapsed time. This means that virsh domjobinfo can
> return time data during incoming migration
> 
> * src/qemu/qemu_driver.c: Keep a job active during incoming
>   migration. Refresh job elapsed time when returning job info
> ---
>  src/qemu/qemu_driver.c |   80 +++++++++++++++++++++++++++++++++++++++++++++---
>  1 files changed, 75 insertions(+), 5 deletions(-)

ACK.

> +    struct timeval now;
> +
> +    if (gettimeofday(&now, NULL) < 0) {

Hmm, we probably should add gettimeofday to the list of gnulib modules,
for the sake of mingw.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]