From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vepr1-0001CK-Oz for qemu-devel@nongnu.org; Fri, 08 Nov 2013 12:28:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vepqv-0003B2-PU for qemu-devel@nongnu.org; Fri, 08 Nov 2013 12:28:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vepqv-0003At-Hz for qemu-devel@nongnu.org; Fri, 08 Nov 2013 12:28:13 -0500 Message-ID: <527D1FCD.4040704@redhat.com> Date: Fri, 08 Nov 2013 18:30:53 +0100 From: Laszlo Ersek MIME-Version: 1.0 References: <1383511723-11228-1-git-send-email-marcel.a@redhat.com> <527D0652.9020805@suse.de> <527D0F29.40802@redhat.com> <527D1AD5.10503@suse.de> <527D1C49.2040005@redhat.com> In-Reply-To: <527D1C49.2040005@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] exec: fix regression by making system-memory region UINT64_MAX size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , "Michael S. Tsirkin" , Jan Kiszka , Marcel Apfelbaum , qemu-devel , Anthony Liguori , Jordan Justen , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , rth@twiddle.net On 11/08/13 18:15, Paolo Bonzini wrote: > Il 08/11/2013 18:09, Andreas F=C3=A4rber ha scritto: >> I don't have personal experience with using external files there yet, >> but I was hoping that using -pflash pc-bios/bios.bin would just work >> since that'll be symlinked for execution from build directory iiuc. >> >> My thinking was the test could then verify that the BIOS does not read >> as all 0xff, whereas Paolo's suggestion sounds more elaborate, ruling >> out actual 0xff within SeaBIOS by having a positive pattern to check f= or. >=20 > Yeah, that's also a good test and easier! Believe it or not, I did think of both 0x00..0xFF (from a small static file) and using an actual bios image :) I think I'd prefer 0x00..0xFF (with a temporary file as Paolo suggested) because "what is it" looks more attractive than "what is it not" to me. Also, opening the packaged bios binary from the build dir would need extra symlinking again; mkstemp() seems cleaner. Thanks! Laszlo