From: Anthony Liguori Subject: [PATCH] Fix network boot with newer BIOS Date: Wed, 5 Sep 2007 10:35:02 -0500 Message-ID: <11890065031622-git-send-email-aliguori@us.ibm.com> References: <118900650250-git-send-email-aliguori@us.ibm.com> <11890065032226-git-send-email-aliguori@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , Avi Kivity To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: <11890065032226-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This patch is in QEMU CVS and allows network boot to work with newer BIOSes. It was originally written by Bernhard Kauer and committed (and modified) by Thiemo Seufer. Signed-off-by: Anthony Liguori diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c index f2917ca..d3b8786 100644 --- a/qemu/hw/pc.c +++ b/qemu/hw/pc.c @@ -214,6 +214,9 @@ static void cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, int boo case 'd': rtc_set_memory(s, 0x3d, 0x03); /* CD-ROM boot */ break; + case 'n': + rtc_set_memory(s, 0x3d, 0x04); /* Expansion ROM boot */ + break; } /* floppy type */ diff --git a/qemu/vl.c b/qemu/vl.c index fcc899b..d67b12f 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -7521,7 +7521,6 @@ int main(int argc, char **argv) fprintf(stderr, "No valid PXE rom found for network device\n"); exit(1); } - boot_device = 'c'; /* to prevent confusion by the BIOS */ } #endif ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/