AMDESE / AMDSEV

AMD Secure Encrypted Virtualization
272 stars 84 forks source link

grub 2.06 not working with SNP enabled ovmf #200

Open JaewonHur opened 7 months ago

JaewonHur commented 7 months ago

When booting linux image using grub: grub-2.06 and ovmf: edk2-stable202302, it shrinks the available physical memory size to about 2G (even when there is much more memory).

As grub terminal complains Unknown memory type 15, considering reserved, it seems that grub cannot recognize EfiUnacceptedMemoryType and set this e820 entry as reserved.

It does not happen when using grub-2.04.

kenplusplus commented 4 months ago

you can use linuxefi and initrdefi in grub.cfg, instead of linux. check https://git.launchpad.net/ubuntu/+source/grub2/tree/grub-core/loader/i386/linux.c?h=applied/ubuntu/jammy-devel#n674