From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy9N2-0008OU-7w for qemu-devel@nongnu.org; Mon, 08 Dec 2014 20:13:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy9Mw-0007Ft-3K for qemu-devel@nongnu.org; Mon, 08 Dec 2014 20:13:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy9Mv-0007FP-Sz for qemu-devel@nongnu.org; Mon, 08 Dec 2014 20:13:38 -0500 From: Laszlo Ersek Date: Tue, 9 Dec 2014 02:13:05 +0100 Message-Id: <1418087585-27601-8-git-send-email-lersek@redhat.com> In-Reply-To: <1418087585-27601-1-git-send-email-lersek@redhat.com> References: <1418087585-27601-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH v3 7/7] hw/arm/virt: enable passing of EFI-stubbed kernel to guest UEFI firmware List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org, qemu-devel@nongnu.org, rjones@redhat.com, drjones@redhat.com, lersek@redhat.com The virt board already ensures mutual exclusion between -bios and -pflash unit#0; we only need to set "bootinfo.firmware_loaded", introduced in the previous patch, if either of those options was used to load the guest firmware. Signed-off-by: Laszlo Ersek --- Notes: v3: - unchanged hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 274aaae..0b5ad7c 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -632,8 +632,9 @@ static void machvirt_init(MachineState *machine) vbi->bootinfo.nb_cpus = smp_cpus; vbi->bootinfo.board_id = -1; vbi->bootinfo.loader_start = vbi->memmap[VIRT_MEM].base; vbi->bootinfo.get_dtb = machvirt_dtb; + vbi->bootinfo.firmware_loaded = bios_name || drive_get(IF_PFLASH, 0, 0); arm_load_kernel(ARM_CPU(first_cpu), &vbi->bootinfo); } static QEMUMachine machvirt_a15_machine = { -- 1.8.3.1