Received: from [140.186.70.92] (port=50691 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGwUQ-0002Yl-FT for qemu-devel@nongnu.org; Fri, 12 Nov 2010 11:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGwUN-0005PY-Rk for qemu-devel@nongnu.org; Fri, 12 Nov 2010 11:28:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGwUN-0005PU-Km for qemu-devel@nongnu.org; Fri, 12 Nov 2010 11:28:35 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 0/2] v7 Decouple block device removal from device removal References: <1289576289-27888-1-git-send-email-ryanh@us.ibm.com> Date: Fri, 12 Nov 2010 17:28:30 +0100 In-Reply-To: <1289576289-27888-1-git-send-email-ryanh@us.ibm.com> (Ryan Harper's message of "Fri, 12 Nov 2010 09:38:07 -0600") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ryan Harper Cc: Kevin Wolf , Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org, "Michael S. Tsirkin" Ryan Harper writes: > Once more dear friends, v7 > > 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. Mgmt layer doesn't have a > reliable method to force a disconnect. > > The new monitor command, drive_del, will revoke a guests access to the > block device independently of the removal of the pci device. > > The first patch implements drive_del, the second patch implements the > qmp version of the monitor command. > > Changes since v6: > - Updated patch description > - Dropped bdrv_unplug and inlined in drive_del > - Explicitly invoke drive_uninit() > Changes since v5: > - Removed dangling pointers in guest and host state. This ensures things like > info block no longer displays the deleted drive; though info pci will > continue to display the pci device until the guest responds to the removal > request. > - Renamed drive_unplug -> drive_del > Changes since v4: > - Droppped drive_get_by_id patch and use bdrv_find() instead > - Added additional details about drive_unplug to hmp/qmp interface > > Changes since v3: > - Moved QMP command for drive_unplug() to separate patch > > Changes since v2: > - Added QMP command for drive_unplug() > > Changes since v1: > - CodingStyle fixes > - Added qemu_aio_flush() to bdrv_unplug() > > Signed-off-by: Ryan Harper ACK series