[edk2-devel] [PATCH v10 1/4] OvmfPkg: Add memory acceptance event in AmdSevDxe

Ard Biesheuvel ardb at kernel.org
Fri Feb 10 11:12:59 UTC 2023


On Fri, 10 Feb 2023 at 09:00, Gupta, Pankaj <pankaj.gupta at amd.com> wrote:
>
>
> >>> With this patch I observe an issue where my Linux (6.2.0-rc7) guest
> >>> recur to Bootloader menu again. I am testing this with SEV SNP (w/o
> >>> UPM). Also, guest don't have lazy memory acceptance support.
> >>>
> >>
> >> Thanks for the report. I'll try to reproduce it on our UEFI and if I'm
> >> unable, then we'll discuss next steps.
> >>
> >
> > I don't see this in our test Ubuntu 22.04 image from Canonical. Do you
> > have a boot log you could send me? I'm not sure I understand what you
> > mean by recurring to the Bootloader menu. On ExitBootServices, the
>
> Thank you for looking into it.
>
> Its going again to bootloader menu after I slecet the booting OS.
>
> > memory key will end up changing and the caller will need to call
> > GetMemoryMap and try EBS again, but I don't know why that would send
> > you to a bootmenu.
>
> Sorry, could not understand this. As I am not very familiar with the efi
> code flow. Could you please elaborate a bit.
>
> I see these[1] errors: Also attached the complete log.
>
> Thanks,
> Pankaj
>
> [1]
> ConvertPages: range 1000000 - 41AEFFF covers multiple entries^M
> Accepting all memory^M
> Accepting all memory^M

This looks to me like it is entering the 'accept' path twice, and so
ExitBootServices() is failing twice, resulting in a failed boot.

> EFI stub: ERROR: exit_boot() failed!^M
> EFI stub: ERROR: efi_main() failed!^M
> Image Return Status = Invalid Parameter^M
> BdsDxe: failed to start Boot0006 "ubuntu" from
> HD(1,GPT,0482E38B-B35F-4359-A017-F7B0E924FECD,0x800,0x100000)/\EFI\ubuntu-hdd2\shimx64.efi:
> Invalid Parameter^M


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99974): https://edk2.groups.io/g/devel/message/99974
Mute This Topic: https://groups.io/mt/96534752/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list