From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail105.syd.optusnet.com.au (mail105.syd.optusnet.com.au [211.29.132.249]) by mx.groups.io with SMTP id smtpd.web11.1328.1627438696601159974 for ; Tue, 27 Jul 2021 19:18:16 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=softfail (domain: linux.com, ip: 211.29.132.249, mailfrom: chris.willing@linux.com) Received: from d8.hgw.net.au (pa49-197-59-136.pa.qld.optusnet.com.au [49.197.59.136]) (Authenticated sender: chris.willing@optusnet.com.au) by mail105.syd.optusnet.com.au (Postfix) with ESMTPA id 0465610455B7; Wed, 28 Jul 2021 12:18:14 +1000 (AEST) From: "Christoph Willing" To: devel@edk2.groups.io Cc: Christoph Willing Subject: [PATCH 0/1] OvmfPkg PlatformBootManagerLib: Move TryRunningQemuKernel() Date: Wed, 28 Jul 2021 12:02:32 +1000 Message-Id: <20210728020232.127332-1-chris.willing@linux.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=Tu+Yewfh c=1 sm=1 tr=0 a=Td1b0GxWWDVT73Tj8akgaQ==:117 a=Td1b0GxWWDVT73Tj8akgaQ==:17 a=7tm53aQ-iOiTbP3poWMA:9 Content-Transfer-Encoding: quoted-printable Use of Qemu's -kernel option (thus also -initrd & -append) is currently n= ot working correctly under UEFI boot. The nominated kernel is loaded and the initrd is opened successfully but there is no access to the VM filesystem= . Booting without the -kernel option i.e. using the VM's internal kernel & = intird works as expected with UEFI. This behaviour has been observed in all of the four Linux systems tested = for verification. The commit at which this behaviour appears has been identified and the p= atch proposed here just reverses it i.e. we now run TryRunningQemuKernel() aft= er PlatformBdsConnectSequence() instead of before it. When the proposed patc= h is applied, all four systems are subsequently able to boot correctly under U= EFI. Christoph Willing (1): OvmfPkg PlatformBootManagerLib: Move TryRunningQemuKernel() OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --=20 2.32.0