Received: from eggs.gnu.org ([140.186.70.92]:48081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzVjt-0003VJ-FQ for qemu-devel@nongnu.org; Fri, 02 Sep 2011 11:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzVjs-0000Re-GC for qemu-devel@nongnu.org; Fri, 02 Sep 2011 11:33:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzVjs-0000RX-4h for qemu-devel@nongnu.org; Fri, 02 Sep 2011 11:33:04 -0400 From: Markus Armbruster References: <1312376904-16115-1-git-send-email-armbru@redhat.com> <1312376904-16115-43-git-send-email-armbru@redhat.com> <4E60D83A.5040800@redhat.com> Date: Fri, 02 Sep 2011 17:32:59 +0200 In-Reply-To: <4E60D83A.5040800@redhat.com> (Kevin Wolf's message of "Fri, 02 Sep 2011 15:20:58 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v2 42/45] block: Reset buffer alignment on detach List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: stefano.stabellini@eu.citrix.com, quintela@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, hare@suse.de, amit.shah@redhat.com, hch@lst.de Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> BlockDriverState member buffer_alignment is initially 512. The device >> model may set them, with bdrv_set_buffer_alignment(). If the device >> model gets detached (hot unplug), the device's alignment is left >> behind. Only okay because device hot unplug automatically destroys >> the BlockDriverState. But that's a questionable feature, best not to >> rely on it. >> >> Signed-off-by: Markus Armbruster > > Hm, I'm not sure about this... Maybe instead of doing it on open and > detach, which is a strange combination, the right thing would be to do > it on attach? Maybe. My readiness to rearrange code for neatness declines a bit beyond PATCH#30 or so ;)