Received: from eggs.gnu.org ([2001:4830:134:3::10]:42020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMUXI-0005OL-Ja for qemu-devel@nongnu.org; Sun, 18 Jun 2017 03:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMUXH-0004rE-Qx for qemu-devel@nongnu.org; Sun, 18 Jun 2017 03:22:16 -0400 From: Xie Changlong Message-ID: <7ec58051-d835-a485-7578-2022351c9712@gmail.com> Date: Sun, 18 Jun 2017 15:21:57 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [Question] How can we confirm hot-plug disk succesfully? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-block@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , Kevin Wolf , Stefan Hajnoczi , Fam Zheng , Max Reitz 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 hotplug('device_add') successfully? 2) It seems when hot-plug disk, we don't care acpiphp module status on the guest, am I right? 3) Why there is no DEVICE_ADDED like event? Any answer would be appreciated, thanks. -- Thanks -Xie