From 084b632eae93db823df1c57ed8324a27dcdd1a77 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 15 Nov 2021 10:40:32 +0000 Subject: [PATCH] Disable S3 when booting Windows with SecureBoot #162 Disabling S3 is required while booting Windows with SecureBoot enable. Disabling S3 is not the cause of #162 --- quickemu | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quickemu b/quickemu index 161b252..cfb5065 100755 --- a/quickemu +++ b/quickemu @@ -506,10 +506,9 @@ function vm_boot() { fi GUEST_TWEAKS="-no-hpet -global kvm-pit.lost_tick_policy=discard" - # Disable S3 support in the VM for Arch Linux to ensure Windows can boot with SecureBoot enabled + # Disable S3 support in the VM to ensure Windows can boot with SecureBoot enabled # - https://wiki.archlinux.org/title/QEMU#VM_does_not_boot_when_using_a_Secure_Boot_enabled_OVMF - # - https://github.com/wimpysworld/quickemu/issues/220 - if [[ "${EFI_CODE}" == *"edk2-ovmf/OVMF_CODE.secboot.fd"* ]]; then + if [ "${secureboot}" == "on" ]; then GUEST_TWEAKS="${GUEST_TWEAKS} -global ICH9-LPC.disable_s3=1" fi