From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35297 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7y1N-0005Nx-Jj for qemu-devel@nongnu.org; Mon, 18 Oct 2010 18:17:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7y1H-0005tU-N7 for qemu-devel@nongnu.org; Mon, 18 Oct 2010 18:17:33 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:42994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7y1H-0005rt-Hz for qemu-devel@nongnu.org; Mon, 18 Oct 2010 18:17:27 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e37.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o9IMFF7C001964 for ; Mon, 18 Oct 2010 16:15:15 -0600 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id o9IMHOCI262704 for ; Mon, 18 Oct 2010 16:17:24 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9IMHNFf016497 for ; Mon, 18 Oct 2010 16:17:23 -0600 From: Ryan Harper Date: Mon, 18 Oct 2010 17:17:15 -0500 Message-Id: <1287440237-14675-1-git-send-email-ryanh@us.ibm.com> Subject: [Qemu-devel] [PATCH 0/2] Decouple block device removal from device removal List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Ryan Harper This patch series decouples the detachment of a block device from the removal of the backing pci-device. Removal of a hotplugged pci device requires the guest to respond before qemu tears down the block device. In some cases, the guest may not respond leaving the guest with continued access to the block device. The new monitor command, drive_unplug, will revoke a guests access to the block device independently of the removal of the pci device. The first patch adds a new drive find method, the second patch implements the monitor command and block layer changes. Signed-off-by: Ryan Harper