Re: [PATCH v2 1/4] qemu: Remove interface backend only after frontend is gone

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

 



On 06/03/14 10:22, Jiri Denemark wrote:
> [1] reported that we are removing network's backend too early. I didn't
> really get the reproducer but libvirt behaves strangely when a guest
> does not confirm the removal, e.g., it does not support PCI hotplug. In
> such case, detaching a network device leaves its frontend in place but
> removes the backend, which makes the device unusable for the guest.
> Moreover attaching the same device again succeeds and both the guest and
> libvirt will see two network interfaces attached but only one of them is
> actually working.
> 
> I checked with Paolo Bonzini and he confirmed we should only remove a
> backend after seeing DEVICE_DELETED event for a corresponding frontend.
> 
> [1] https://www.redhat.com/archives/libvir-list/2014-March/msg01740.html
> 
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
> 
> Notes:
>     Version 2:
>     - return int and propagate errors
> 
>  src/qemu/qemu_hotplug.c | 68 +++++++++++++++++++++++++++----------------------
>  1 file changed, 37 insertions(+), 31 deletions(-)
> 

ACK

Peter


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]