Received: from eggs.gnu.org ([2001:4830:134:3::10]:47605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhHLL-0005Jc-TH for qemu-devel@nongnu.org; Tue, 06 Sep 2016 10:27:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhHLK-00068N-U2 for qemu-devel@nongnu.org; Tue, 06 Sep 2016 10:27:19 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:36036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhHLK-00068H-NT for qemu-devel@nongnu.org; Tue, 06 Sep 2016 10:27:18 -0400 Received: by mail-wm0-x241.google.com with SMTP id l65so11026480wmf.3 for ; Tue, 06 Sep 2016 07:27:18 -0700 (PDT) Sender: Paolo Bonzini References: <20160901171148.697e696b@t450s.home> <5abeb25c-a8a9-9144-cb6f-724647c5f35a@redhat.com> <87d1ki3djk.fsf@dusky.pond.sub.org> <4b642f96-9fd6-844b-8d1f-395ad4b7bf79@redhat.com> <20160905201851.68fac3c3@t450s.home> From: Paolo Bonzini Message-ID: Date: Tue, 6 Sep 2016 16:26:45 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [libvirt] qapi DEVICE_DELETED event issued *before* instance_finalize?! List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laine Stump , qemu-devel Cc: libvir-list@redhat.com, Michal Privoznik On 06/09/2016 16:02, Laine Stump wrote: >>> >> It seems like this is just pointing out another flaw in the semantics >> of DEVICE_DELETED, a device can linger without a device id, so there's >> no way to reference it via QMP. > > Ah, right. I hadn't caught that. Yeah, since it's the device id that's > used to keep track of which device the event is for, then it seems > impossible to have an event that's issued after the device id is already > recycled. If a device lingers for more than say a second (most likely less---what you're looking for is one or two synchronize_rcu cycles), it would be a bug in QEMU. Paolo