qemu: Remove interface backend only after frontend is gone
qemu: Remove interface backend only after frontend is gone

[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 <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

datto/libvirt,andreabolognani/libvirt,datto/libvirt,fabianfreyer/libvirt,eskultety/libvirt,taget/libvirt,andreabolognani/libvirt,datto/libvirt,libvirt/libvirt,nertpinx/libvirt,agx/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,libvirt/libvirt,olafhering/libvirt,nertpinx/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,taget/libvirt,andreabolognani/libvirt,rlaager/libvirt,shugaoye/libvirt,datto/libvirt,agx/libvirt,eskultety/libvirt,elmarco/libvirt,olafhering/libvirt,olafhering/libvirt,VenkatDatta/libvirt,rlaager/libvirt,andreabolognani/libvirt,olafhering/libvirt,jardasgit/libvirt,jardasgit/libvirt,rlaager/libvirt,jfehlig/libvirt,shugaoye/libvirt,agx/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,shugaoye/libvirt,taget/libvirt,nertpinx/libvirt,eskultety/libvirt,elmarco/libvirt,VenkatDatta/libvirt,datto/libvirt,VenkatDatta/libvirt,libvirt/libvirt,taget/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,eskultety/libvirt,zippy2/libvirt,jfehlig/libvirt,crobinso/libvirt,jardasgit/libvirt,jardasgit/libvirt,agx/libvirt,jfehlig/libvirt,crobinso/libvirt,shugaoye/libvirt,rlaager/libvirt,eskultety/libvirt,elmarco/libvirt,zippy2/libvirt,elmarco/libvirt,jardasgit/libvirt,elmarco/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,agx/libvirt,VenkatDatta/libvirt,crobinso/libvirt,taget/libvirt,crobinso/libvirt,rlaager/libvirt