Re: [Qemu-block] [Question] How can we confirm hot-plug disk succesfully?

2017-06-21 Thread Xie Changlong
在 6/19/2017 6:49 PM, Kevin Wolf 写道: 'info block' shows nothing, but we can't add drive who's id is'drive-virtio-disk1' too. Yes, the old BlockBackend is only fully freed when the guest actually unplugs the device. Specifically, we would have to free the QemuOpts in DriveInfo that keeps the ID

Re: [Qemu-block] [Question] How can we confirm hot-plug disk succesfully?

2017-06-19 Thread Kevin Wolf
Am 19.06.2017 um 12:27 hat Xie Changlong geschrieben: > 在 6/19/2017 3:27 PM, Kevin Wolf 写道: > >Am 18.06.2017 um 09:21 hat Xie Changlong geschrieben: > >>In device hot-remove scenario, if we don't probe acpiphp module on > >>the guest, 'device_del' will never emit DEVICE_DELETED event(because >

Re: [Qemu-block] [Question] How can we confirm hot-plug disk succesfully?

2017-06-19 Thread Xie Changlong
在 6/19/2017 3:27 PM, Kevin Wolf 写道: Am 18.06.2017 um 09:21 hat Xie Changlong geschrieben: In device hot-remove scenario, if we don't probe acpiphp module on the guest, 'device_del' will never emit DEVICE_DELETED event(because guest will not write to __EJ0) . So we can confirm that hot-remove

Re: [Qemu-block] [Question] How can we confirm hot-plug disk succesfully?

2017-06-19 Thread Kevin Wolf
Am 18.06.2017 um 09:21 hat Xie Changlong geschrieben: > In device hot-remove scenario, if we don't probe acpiphp module on > the guest, 'device_del' will never emit DEVICE_DELETED event(because > guest will not write to __EJ0) . So we can confirm that hot-remove > failed. But IIUC, there is no

Re: [Qemu-block] [Question] How can we confirm hot-plug disk succesfully?

2017-06-18 Thread Xie Changlong
Resend 在 6/18/2017 3:21 PM, Xie Changlong 写道: Hi all In device hot-remove scenario, if we don't probe acpiphp module on the guest, 'device_del' will never emit DEVICE_DELETED event(because guest will not write to __EJ0) . So we can confirm that hot-remove failed. But IIUC, there is no event

[Qemu-block] [Question] How can we confirm hot-plug disk succesfully?

2017-06-18 Thread Xie Changlong
Hi all In device hot-remove scenario, if we don't probe acpiphp module on the guest, 'device_del' will never emit DEVICE_DELETED event(because guest will not write to __EJ0) . So we can confirm that hot-remove failed. But IIUC, there is no event such as DEVICE_ADDED, so 1) How can we confirm