From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxHXw-0002Um-1r for qemu-devel@nongnu.org; Mon, 12 Oct 2009 05:50:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxHXr-0002T8-1n for Qemu-devel@nongnu.org; Mon, 12 Oct 2009 05:50:27 -0400 Received: from [199.232.76.173] (port=46949 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxHXq-0002T3-SA for Qemu-devel@nongnu.org; Mon, 12 Oct 2009 05:50:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1819) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxHXq-0002hY-9E for Qemu-devel@nongnu.org; Mon, 12 Oct 2009 05:50:22 -0400 Message-ID: <4AD2FB99.8000004@redhat.com> Date: Mon, 12 Oct 2009 11:49:13 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <200910062005.n96K5O2q013344@d01av03.pok.ibm.com> In-Reply-To: <200910062005.n96K5O2q013344@d01av03.pok.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [Qemu-commits] [COMMIT 45a50b1] Reorganize option rom (+linux kernel) loading. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Qemu-devel@nongnu.org, Gerd Hoffmann Am 06.10.2009 22:05, schrieb Anthony Liguori: > From: Gerd Hoffmann > > This patch adds infrastructure to maintain memory regions which must be > restored on reset. That includes roms (vga bios and option roms on pc), > but is also used when loading linux kernels directly. Features: > > - loading files is supported. > - passing blobs is supported. > - target address range is supported (for optionrom area). > - fixed target memory address is supported (linux kernel). > > New in v2: > - writes to ROM are done only at initial boot. > - also handle aout and uimage loaders. > - drop unused fread_targphys() function. > > The final memory layout is created once all memory regions are > registered. The option roms get addresses assigned and the > registered regions are checked against overlaps. Finally all data > is copyed to the guest memory. > > Advantages: > > (1) Filling memory on initial boot and on reset takes the same > code path, making reset more robust. > (2) The need to keep track of the option rom load address is gone. > (3) Due to (2) option roms can be loaded outside pc_init(). This > allows to move the pxe rom loading into the nic drivers for > example. > > Additional bonus: There is a 'info roms' monitor command now. > > The patch also switches over pc.c and removes the > option_rom_setup_reset() and load_option_rom() functions. > > Signed-off-by: Gerd Hoffmann > Signed-off-by: Anthony Liguori Is it intended that -initrd files are no longer searched in the current directory? Before this change you could use -initrd file, now you need -initrd ./file Kevin