From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR1OQ-0005wr-Ku for qemu-devel@nongnu.org; Tue, 01 Oct 2013 10:57:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR1OD-00082N-QW for qemu-devel@nongnu.org; Tue, 01 Oct 2013 10:57:42 -0400 Sender: Paolo Bonzini Message-ID: <524AE2E6.5010303@redhat.com> Date: Tue, 01 Oct 2013 16:57:42 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1380620399-9907-1-git-send-email-kraxel@redhat.com> <1380626523.5280.27.camel@nilsson.home.kraxel.org> <1380629771.5280.40.camel@nilsson.home.kraxel.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] turn firmware image filename into a machine option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Mark Langsdorf , Richard Henderson , Alexander Graf , Fabien Chouteau , QEMU Developers , Blue Swirl , Michael Walle , =?UTF-8?B?SGVydsOpIFBvdXNzaW5lYXU=?= , Gerd Hoffmann , Anthony Liguori , New World , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , Aurelien Jarno , Paul Brook Il 01/10/2013 15:00, Peter Maydell ha scritto: > > Some don't. They just memcpy the firmware into guest ram instead. > > ...is that a good thing? What does the real hardware do? Should we > be doing that instead? Isn't this awkward on reset? They probably have a ROM (which should be the real "-machine firmware=...") that loads firmware from NAND flash ("-drive if=mtd,file=...") into RAM, and then gets out of the way. Perhaps it's what QEMU should do, but not even the few machines that support "-drive if=mtd" do it to this level of accuracy. Paolo