From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAcab-0006Mh-Sp for qemu-devel@nongnu.org; Sat, 17 Aug 2013 05:14:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAcaV-0006la-TL for qemu-devel@nongnu.org; Sat, 17 Aug 2013 05:14:29 -0400 Message-ID: <520F3F82.10307@redhat.com> Date: Sat, 17 Aug 2013 11:16:50 +0200 From: Laszlo Ersek MIME-Version: 1.0 References: <20130816215706.23647.80992.stgit@bling.home> <520F32F9.7080504@redhat.com> In-Reply-To: <520F32F9.7080504@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4] exec: Fix non-power-of-2 sized accesses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: Paolo Bonzini , qemu-stable@nongnu.org, qemu-devel@nongnu.org, rth@twiddle.net (side point) On 08/17/13 10:23, Laszlo Ersek wrote: > if (l >= access_size_max) { > return access_size_max; > } > return 1 << max(3, lmb(l)); lol, of course this should have been min()... Alex's patch is OK of course. Laszlo