From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVfeu-0002uf-6U for qemu-devel@nongnu.org; Thu, 03 Apr 2014 07:18:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVfeo-0004Kb-2S for qemu-devel@nongnu.org; Thu, 03 Apr 2014 07:18:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVfen-0004KV-Qx for qemu-devel@nongnu.org; Thu, 03 Apr 2014 07:18:05 -0400 Date: Thu, 3 Apr 2014 14:18:33 +0300 From: "Michael S. Tsirkin" Message-ID: <20140403111833.GB16914@redhat.com> References: <533D23C0.8080408@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <533D23C0.8080408@huawei.com> Subject: Re: [Qemu-devel] Is it necessary to add a Monitor event of QEVENT_DEVICE_ADDED List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xiexiangyou Cc: qemu-devel@nongnu.org On Thu, Apr 03, 2014 at 05:02:56PM +0800, xiexiangyou wrote: > Hi all, > > As we know, when hot-add a device, we don't know whether the device is present in VM from outside(like libvirt). > However, unplugging device, when complete remove the device, Qemu will generate a Monitor event,QEVENT_DEVICE_DELETED. > Libvirt can receive the event and do something. > So is it necessary to add a Monitor event of completing add device such as QEVENT_DEVICE_ADDED. > > Regards, > -xie I don't know. We have QEVENT_DEVICE_DELETED so libvirt doesn't do things like reuse the slot. But what would be the point of QEVENT_DEVICE_ADDED? -- MST