Received: from eggs.gnu.org ([2001:4830:134:3::10]:57467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKRz2-000094-1I for qemu-devel@nongnu.org; Tue, 05 Jul 2016 11:09:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKRyw-0005Og-17 for qemu-devel@nongnu.org; Tue, 05 Jul 2016 11:09:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKRyv-0005Np-RV for qemu-devel@nongnu.org; Tue, 05 Jul 2016 11:09:49 -0400 References: <577A6955.6020603@kamp.de> <577B130A.3040205@redhat.com> <3221d3d3-37ee-9752-396e-379792445ee0@redhat.com> <577BCB35.6060103@redhat.com> From: Paolo Bonzini Message-ID: <1a6cbf2d-ff64-0994-23b4-eb305d5ce35f@redhat.com> Date: Tue, 5 Jul 2016 17:09:45 +0200 MIME-Version: 1.0 In-Reply-To: <577BCB35.6060103@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Regression: block: Add .bdrv_co_pwrite_zeroes() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Peter Lieven , "qemu-devel@nongnu.org" Cc: Kevin Wolf On 05/07/2016 16:59, Eric Blake wrote: > And yes, we could probably switch to (potentially slower) / % * instead > of bit operations in block/io.c to accommodate a non-power-of-2 optimal > size, but it would require a careful audit to make sure we don't have > even more bit-wise operations lurking that were assuming a power of 2. Yes, it would require some auditing but it has always worked. Regarding speed, I'm sure that / % * are not slower than a system call! :) Paolo