From patchwork Thu Oct 11 02:04:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avik Sil X-Patchwork-Id: 190780 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 148E12C0085 for ; Thu, 11 Oct 2012 13:05:17 +1100 (EST) Received: from localhost ([::1]:36546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TM89D-0000YE-7G for incoming@patchwork.ozlabs.org; Wed, 10 Oct 2012 22:05:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TM893-0000Tz-K3 for qemu-devel@nongnu.org; Wed, 10 Oct 2012 22:05:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TM892-0006MR-Cq for qemu-devel@nongnu.org; Wed, 10 Oct 2012 22:05:05 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:36469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TM891-0006E8-Qm for qemu-devel@nongnu.org; Wed, 10 Oct 2012 22:05:04 -0400 Received: from /spool/local by e28smtp01.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 11 Oct 2012 07:34:56 +0530 Received: from d28relay02.in.ibm.com (9.184.220.59) by e28smtp01.in.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 11 Oct 2012 07:34:53 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9B24p2637355764; Thu, 11 Oct 2012 07:34:52 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q9B7YW5a032067; Thu, 11 Oct 2012 18:34:32 +1100 Received: from aviksil-thinkpad.in.ibm.com ([9.79.202.41]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q9B7YSIO031820; Thu, 11 Oct 2012 18:34:29 +1100 From: Avik Sil To: dwg@au1.ibm.com, agraf@suse.de, qemu-ppc@nongnu.org, qemu-devel@nongnu.org Date: Thu, 11 Oct 2012 07:34:42 +0530 Message-Id: <1349921082-980-1-git-send-email-aviksil@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.11.4 x-cbid: 12101102-4790-0000-0000-00000504169A X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 122.248.162.1 Cc: nikunj@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH] Add nvram to default boot device list X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch adds nvram specified boot device into qemu default boot_devices list. This helps firmware to boot from nvram specified boot device if no -boot option is specified. Suggested by: Alexander Graf Signed-off-by: Avik Sil --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 48049ef..8adc40b 100644 --- a/vl.c +++ b/vl.c @@ -2349,7 +2349,7 @@ int main(int argc, char **argv, char **envp) const char *icount_option = NULL; const char *initrd_filename; const char *kernel_filename, *kernel_cmdline; - char boot_devices[33] = "cad"; /* default to HD->floppy->CD-ROM */ + char boot_devices[33] = "xcad"; /* default to NVRAM->HD->floppy->CD-ROM */ DisplayState *ds; DisplayChangeListener *dcl; int cyls, heads, secs, translation;