From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDGSq-0001ce-SB for qemu-devel@nongnu.org; Wed, 06 Mar 2013 10:41:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDGSo-0005ZA-Hz for qemu-devel@nongnu.org; Wed, 06 Mar 2013 10:41:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDGSo-0005Z1-8w for qemu-devel@nongnu.org; Wed, 06 Mar 2013 10:41:06 -0500 Message-ID: <5137638E.5000207@redhat.com> Date: Wed, 06 Mar 2013 08:41:02 -0700 From: Eric Blake MIME-Version: 1.0 References: <20130306130055.GA29446@redhat.com> <51375650.1060800@redhat.com> <51375842.1090700@redhat.com> In-Reply-To: <51375842.1090700@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2ERXWJAFRSHRVVWNTBCFB" Subject: Re: [Qemu-devel] [PATCH] qdev: DEVICE_DELETED event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Kevin Wolf , Anthony Liguori , Eduardo Habkost , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Stefan Hajnoczi , Markus Armbruster , Luiz Capitulino , "libvir-list@redhat.com" , Gerd Hoffmann , laine@redhat.com, =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2ERXWJAFRSHRVVWNTBCFB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable [adding libvirt] On 03/06/2013 07:52 AM, Paolo Bonzini wrote: > Il 06/03/2013 15:44, Eric Blake ha scritto: >> Question - if libvirt misses the event (for example, if libvirtd >> requests a remove, but then gets restarted, and the event arrives befo= re >> libvirtd is back up), is there a way to poll whether the the removal h= as >> completed? The event is great to minimize polling overhead in the >> common case, but we generally provide this sort of information via a >> pollable interface at the same time. >=20 > Yes, you can use qom-list on /machine/peripheral. Which means libvirt should be patched to use qom-list right now, even before this event makes it in, in order to avoid its current bug of reusing a device id before the deletion has completed. Adding the event is still useful, as polling is never nice; and we already know how to make libvirt do conditional code based on whether query-events shows that the event has been added to minimize polling where possible. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2ERXWJAFRSHRVVWNTBCFB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJRN2OOAAoJEKeha0olJ0NqbNcH/jDqWi0DpmfVDCEFx9KvToTS aB+eohlDn268DuLW56AI1GOrcSyTKt826gXKyLlbIIU3gZeXeJJTHAiKzmCyEYDA lvOynthu47L76Aw/uTx/HpXY+pfhhK9etxSGnqLW+jbPymWH6Q/DfFV/sLufwZdb c5NrKm+YG7EWXKt78aQG2mDoU0WPov13cTnm3UhIXaVx9CC762I48gb5NURx+V0F 5Tszo672QLSECuQFZ1Fw4gDn7rs2VGHHHN47YfZ+iyduIKyncXlvFKjXmDWSFkQq nsew1UlAqJSo90yvgXBN8Di+21bhx1uE9myOpJm9zEZ92D9sKFAx4kyqTkXWFGw= =9KTd -----END PGP SIGNATURE----- ------enig2ERXWJAFRSHRVVWNTBCFB--