Re: [PATCH] qemu: Fix a possible deadlock in p2p migration

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

 



On 12/03/2010 02:53 AM, Jiri Denemark wrote:
> Two more calls to remote libvirtd have to be surrounded by
> qemuDomainObjEnterRemoteWithDriver() and
> qemuDomainObjExitRemoteWithDriver() to prevent possible deadlock between
> two communicating libvirt daemons.
> 
> See commit f0c8e1cb3774d6f09e2681ca1988bf235a343007 for further details.
> ---
>  src/qemu/qemu_driver.c |   18 ++++++++++++++++--
>  1 files changed, 16 insertions(+), 2 deletions(-)

ACK.

> -    if (!VIR_DRV_SUPPORTS_FEATURE(dconn->driver, dconn,
> -                                  VIR_DRV_FEATURE_MIGRATION_P2P)) {
> +
> +    qemuDomainObjEnterRemoteWithDriver(driver, vm);
> +    p2p = VIR_DRV_SUPPORTS_FEATURE(dconn->driver, dconn,
> +                                   VIR_DRV_FEATURE_MIGRATION_P2P);

Ah - this explains your patch for VIR_DRV_SUPPORTS_FEATURE; and this is
indeed a case where we want error to be equated with no feature support.

-- 
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]