Received: from eggs.gnu.org ([208.118.235.92]:59783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvpWz-0004yF-3s for qemu-devel@nongnu.org; Mon, 30 Jul 2012 08:57:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvpWo-0004yg-8M for qemu-devel@nongnu.org; Mon, 30 Jul 2012 08:57:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvpWo-0004yR-0G for qemu-devel@nongnu.org; Mon, 30 Jul 2012 08:56:54 -0400 From: Markus Armbruster References: <87629cvz5b.fsf@blackfin.pond.sub.org> <87ipd8s7zs.fsf@blackfin.pond.sub.org> Date: Mon, 30 Jul 2012 14:56:49 +0200 In-Reply-To: (Blue Swirl's message of "Sat, 28 Jul 2012 08:29:18 +0000") Message-ID: <87y5m1be5q.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Funny -m arguments can crash List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: peter.maydell@linaro.org, jan.kiszka@siemens.com, qemu-devel@nongnu.org, Avi Kivity Blue Swirl writes: > On Sat, Jul 28, 2012 at 6:41 AM, Markus Armbruster wr= ote: >> Blue Swirl writes: >> >>> On Wed, Jul 25, 2012 at 11:49 AM, Markus Armbruster >>> wrote: >>>> Asking for "funny" memory sizes sometimes crashes for me. For instance >>>> -m 0.8 or the equivalent -m 838860b. -m 0.7 appears to work. >>>> >>>> Should we round memory sizes? How? Where? >>> >>> We had a discussion about this recently: >>> http://lists.nongnu.org/archive/html/qemu-devel/2012-06/msg02800.html >> >> I missed that, thanks! >> >> Unfortunately, the thread petered out without a conclusion. What now? > > There's no patch to do the check in vl.c for 8k. Lacking the patch, we > don't know exactly what is the charge level of megaphone batteries: > like Schr=C3=B6dinger's cat, they may be dead or fully charged. What would you like me to do? Round argument of -m up to next multiple of 8KiB?