Received: from eggs.gnu.org ([140.186.70.92]:38825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlKGC-0000UT-A4 for qemu-devel@nongnu.org; Mon, 25 Jul 2011 08:27:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlKGB-0008IU-F6 for qemu-devel@nongnu.org; Mon, 25 Jul 2011 08:27:48 -0400 Received: from verein.lst.de ([213.95.11.211]:60267 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlKGB-0008IP-8x for qemu-devel@nongnu.org; Mon, 25 Jul 2011 08:27:47 -0400 Date: Mon, 25 Jul 2011 14:27:47 +0200 From: Christoph Hellwig Message-ID: <20110725122747.GB12295@lst.de> References: <1311179069-27882-1-git-send-email-armbru@redhat.com> <1311179069-27882-3-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1311179069-27882-3-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH 02/55] block: Reset device model callbacks on detach List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, stefano.stabellini@eu.citrix.com, dbaryshkov@gmail.com, quintela@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, amit.shah@redhat.com On Wed, Jul 20, 2011 at 06:23:36PM +0200, Markus Armbruster wrote: > BlockDriverState members change_cb and change_opaque are initially > null. The device model may set them, with bdrv_set_change_cb(). If > the device model gets detached (hot unplug), they're left dangling. > Only safe because device hot unplug automatically destroys the > BlockDriverState. But that's a questionable feature, best not to rely > on it. Looks good, Reviewed-by: Christoph Hellwig