Allow kernel boot on QEMU with AMD SEV.
authorbluhm <bluhm@openbsd.org>
Fri, 4 Oct 2024 21:15:52 +0000 (21:15 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 4 Oct 2024 21:15:52 +0000 (21:15 +0000)
commit2ce883118e8e5b201f86b9c7b55b5710ef029134
treec3be365c1e74a5aac3ddee7266bdf5c965a914f4
parentaf11b61d5d7d6672d789056da9e8e9b2862a20b6
Allow kernel boot on QEMU with AMD SEV.

When booting an OpenBSD kernel on Linux QEMU with SEV enabled, the
hypervisor does not forward the SME feature, only the SEV bit is
set.  Therefore do not depend on SME when checking for SEV guest
mode in locore0.

from Sebastian Sturm; via hshoexer@; OK jsg@
sys/arch/amd64/amd64/locore0.S