From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDLOf-00064c-JU for qemu-devel@nongnu.org; Thu, 18 Dec 2008 11:06:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDLOe-000627-5L for qemu-devel@nongnu.org; Thu, 18 Dec 2008 11:06:45 -0500 Received: from [199.232.76.173] (port=42522 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDLOe-00061w-2O for qemu-devel@nongnu.org; Thu, 18 Dec 2008 11:06:44 -0500 Received: from goliath.siemens.de ([192.35.17.28]:23889) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LDLOd-0008Fd-H4 for qemu-devel@nongnu.org; Thu, 18 Dec 2008 11:06:43 -0500 Received: from lizzard.sbs.de (lizzard.sbs.de [194.138.37.39]) by goliath.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id mBIG6eMw024040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 18 Dec 2008 17:06:40 +0100 Received: from mail2.sbs.de (localhost [127.0.0.1]) by lizzard.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id mBIG6d5J019802 for ; Thu, 18 Dec 2008 17:06:39 +0100 Received: from [139.25.109.167] (mchn012c.mchp.siemens.de [139.25.109.167] (may be forged)) by mail2.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id mBIG6av5011717 for ; Thu, 18 Dec 2008 17:06:39 +0100 Message-ID: <494A74F0.3020309@siemens.com> Date: Thu, 18 Dec 2008 17:06:08 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <494A4A55.2090700@siemens.com> <20081218133053.GA32126@redhat.com> In-Reply-To: <20081218133053.GA32126@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] x86: Manage BIOS boot menu via command line Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Gleb Natapov wrote: > On Thu, Dec 18, 2008 at 02:04:21PM +0100, Jan Kiszka wrote: >> diff --git a/pc-bios/bios-pq/0006_optional-boot-menu.patch b/pc-bios/bios-pq/0006_optional-boot-menu.patch >> new file mode 100644 >> index 0000000..bbe5753 >> --- /dev/null >> +++ b/pc-bios/bios-pq/0006_optional-boot-menu.patch >> @@ -0,0 +1,19 @@ >> +Make interactive boot menu optional. >> + >> +Signed-off-by: Jan Kiszka >> + >> +diff --git a/bios/rombios.c b/bios/rombios.c >> +index 123672f..7ce5b6c 100644 >> +--- a/bios/rombios.c >> ++++ b/bios/rombios.c >> +@@ -2026,6 +2026,10 @@ interactive_bootkey() >> + Bit16u ss = get_SS(); >> + Bit16u valid_choice = 0; >> + >> ++ /* QEMU sets CMOS byte 0x60 to non-zero if the boot menu should be skipped */ >> ++ if (inb_cmos(0x60)) >> ++ return; >> ++ >> + while (check_for_keystroke()) >> + get_keystroke(); >> + > Why not push this upstream? I wanted to wait at least for some comments here first, then push this to bochs. Jan -- Siemens AG, Corporate Technology, CT SE 26 Corporate Competence Center Embedded Linux