fix: Enable SMM for Linux guests on Linux hosts when Secure Boot is enabled

This commit is contained in:
Alex Haydock 2025-02-02 08:37:44 +00:00 committed by Phil Clifford
parent 9dc70808c5
commit 6d5b9231d2
1 changed files with 10 additions and 0 deletions

View File

@ -395,6 +395,16 @@ function configure_cpu() {
fi
fi
# SMM is also required for Linux guests when Secure Boot is enabled
if [ "${secureboot}" == "on" ]; then
if [ "${guest_os}" == "linux" ]; then
# SMM is not available on QEMU for macOS via Homebrew
if [ "${OS_KERNEL}" == "Linux" ]; then
SMM="on"
fi
fi
fi
case ${guest_os} in
batocera|freedos|haiku|solaris) MACHINE_TYPE="pc";;
kolibrios|reactos)