Add SMM support, enabled by default for Windows guests

This commit is contained in:
Martin Wimpress 2021-10-19 00:16:56 +01:00
parent b6db417b81
commit a4eddaa9e5
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -218,6 +218,8 @@ function vm_boot() {
local MOUSE="usb-tablet"
local NET_DEVICE="virtio-net"
local OSK=""
local QEMU_VER=""
local SMM="off"
local USB_HOST_PASSTHROUGH_CONTROLLER="qemu-xhci"
local VIDEO=""
@ -478,6 +480,7 @@ function vm_boot() {
if [ -z "${disk_size}" ]; then
disk_size="64G"
fi
SMM="on"
;;
*)
CPU="-cpu host,kvm=on"
@ -759,7 +762,7 @@ function vm_boot() {
# shellcheck disable=SC2054,SC2206,SC2140
args+=(-name ${VMNAME},process=${VMNAME} -pidfile "${VMDIR}/${VMNAME}.pid"
-enable-kvm -machine q35,vmport=off ${GUEST_TWEAKS}
-enable-kvm -machine q35,smm=${SMM},vmport=off ${GUEST_TWEAKS}
${CPU} ${SMP}
-m ${RAM_VM} ${BALLOON}
-smbios type=2,manufacturer="Wimpys World",product="Quickemu",version="${VERSION}",serial="jvzclfjbeyq.pbz",location="wimpysworld.com",asset="${VMNAME}"