Received: from eggs.gnu.org ([208.118.235.92]:50071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz2Bo-0003Tw-Ji for qemu-devel@nongnu.org; Wed, 08 Aug 2012 05:04:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sz2Bn-0006xL-CX for qemu-devel@nongnu.org; Wed, 08 Aug 2012 05:04:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz2Bn-0006xH-4a for qemu-devel@nongnu.org; Wed, 08 Aug 2012 05:04:27 -0400 From: Markus Armbruster References: <87629cvz5b.fsf@blackfin.pond.sub.org> <87ipd8s7zs.fsf@blackfin.pond.sub.org> <87y5m1be5q.fsf@blackfin.pond.sub.org> Date: Wed, 08 Aug 2012 11:04:22 +0200 In-Reply-To: (Blue Swirl's message of "Mon, 30 Jul 2012 15:05:41 +0000") Message-ID: <87wr1921rd.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 Mon, Jul 30, 2012 at 12:56 PM, Markus Armbruster w= rote: >> Blue Swirl writes: >> >>> On Sat, Jul 28, 2012 at 6:41 AM, Markus Armbruster = wrote: >>>> 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 insta= nce >>>>>> -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? > > Yes please, maybe with a notice to the user. Next problem: minimum RAM size. For instance, -M pc -m X, where X < 32KiB dies "qemu: fatal: Trying to execute code outside RAM or ROM at [...] Aborted (core dumped)" with TCG, and "KVM internal error. Suberror: 1" with KVM. Should a minimum RAM size be enforced? Board-specific? I'm inclined to declare this one a feature...