CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2024/10/04 16:21:28
Modified files: sys/arch/amd64/stand/efiboot: exec_i386.c Log message: Allow boot loader to run as AMD SEV guest on QEMU with EFI. When efibooting amd64, the boot loader rewrites the page table built by EFI firmware to ensure that there are no read-only mappings. The rewrite is needed for some HP EFI BIOS, that maps computrace section read-only. When efibooting on SEV enabled QEMU, we would have to ensure the crypt bit is set when changing page tables. However, there is no need for the HP workaround when booting on QEMU (or any other VM), so just do not modify the page table, when SEV gest mode is detected. from Sebastian Sturm; via hshoexer@; OK kettenis@