Re: [Qemu-devel] Is it necessary to add a Monitor event of QEVENT_DEVICE_ADDED

2014-04-03 Thread Eric Blake
On 04/03/2014 03:02 AM, 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

Re: [Qemu-devel] Is it necessary to add a Monitor event of QEVENT_DEVICE_ADDED

2014-04-03 Thread Michael S. Tsirkin
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,QEV

[Qemu-devel] Is it necessary to add a Monitor event of QEVENT_DEVICE_ADDED

2014-04-03 Thread xiexiangyou
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