From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhcnY-0000tU-4U for qemu-devel@nongnu.org; Thu, 01 Oct 2015 08:17:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhcnS-0003ZT-B1 for qemu-devel@nongnu.org; Thu, 01 Oct 2015 08:17:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhcnS-0003ZM-5p for qemu-devel@nongnu.org; Thu, 01 Oct 2015 08:17:14 -0400 From: =?UTF-8?q?Marc=20Mar=C3=AD?= Date: Thu, 1 Oct 2015 14:16:58 +0200 Message-Id: <1443701819-13855-7-git-send-email-markmb@redhat.com> In-Reply-To: <1443701819-13855-1-git-send-email-markmb@redhat.com> References: <1443701677-13629-1-git-send-email-markmb@redhat.com> <1443701819-13855-1-git-send-email-markmb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v4 6/7] Make the kernel image in the fw_cfg DMA interface bootable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Drew , Stefan Hajnoczi , "Gabriel L. Somlo" , Kevin O'Connor , Gerd Hoffmann , =?UTF-8?q?Marc=20Mar=C3=AD?= , Laszlo Add an entry to the bootorder file with name "vmlinux". Give this entry more priority than the romfile. Signed-off-by: Marc Mar=C3=AD --- hw/i386/pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 81d93b4..c4c51f7 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1012,8 +1012,10 @@ static void load_linux(PCMachineState *pcms, fw_cfg_add_bytes(fw_cfg, FW_CFG_SETUP_DATA, setup, setup_size); =20 option_rom[nb_option_roms].name =3D "linuxboot.bin"; - option_rom[nb_option_roms].bootindex =3D 0; + option_rom[nb_option_roms].bootindex =3D 1; nb_option_roms++; + + add_boot_device_path(0, NULL, "vmlinux"); } =20 #define NE2000_NB_MAX 6 --=20 2.4.3