Skip to content

Commit

Permalink
fix: Enable SMM for Linux guests on Linux hosts when SecureBoot is en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
alexhaydock committed Feb 1, 2025
1 parent 588e421 commit b973580
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,16 @@ function configure_cpu() {
fi
fi

# Enable SMM for Linux guests on Linux hosts when SecureBoot is enabled
if [ "${secureboot}" == "on" ]; then
if [ "${guest_os}" == "linux" ]; then
# Linux VMs do not boot without this when SecureBoot is enabled
if [ "${OS_KERNEL}" == "Linux" ]; then
SMM="on"
fi
fi
fi

case ${guest_os} in
batocera|freedos|haiku|solaris) MACHINE_TYPE="pc";;
kolibrios|reactos)
Expand Down

0 comments on commit b973580

Please sign in to comment.