From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH 3/3] Fix network boot with newer BIOS Date: Wed, 05 Sep 2007 10:36:33 -0500 Message-ID: <1189006593.26647.4.camel@squirrel> References: <118900650250-git-send-email-aliguori@us.ibm.com> <11890065032226-git-send-email-aliguori@us.ibm.com> <11890065031622-git-send-email-aliguori@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-devel Return-path: In-Reply-To: <11890065031622-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 Sorry, this should be 3/3. Regards, Anthony Liguori On Wed, 2007-09-05 at 10:35 -0500, Anthony Liguori wrote: > 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/