1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

fix: Use qemu32 for Vista x86 and Win7 x86 (#1995)

This commit is contained in:
Kroese
2026-07-26 19:44:18 +02:00
committed by GitHub
parent e00d1aead1
commit 16f763912b
+10 -11
View File
@@ -733,12 +733,7 @@ setMachine() {
BOOT_MODE="windows_legacy" BOOT_MODE="windows_legacy"
[ -z "${ADAPTER:-}" ] && ADAPTER="rtl8139" ;; [ -z "${ADAPTER:-}" ] && ADAPTER="rtl8139" ;;
"winxpx86"* ) "winxp"* | "win2003"* )
DISK_TYPE="ide"
BOOT_MODE="windows_legacy"
[ -z "${SOUND:-}" ] && SOUND="usb-audio" ;;
"win2003"* | "winxpx64"* )
DISK_TYPE="blk" DISK_TYPE="blk"
BOOT_MODE="windows_legacy" BOOT_MODE="windows_legacy"
[ -z "${SOUND:-}" ] && SOUND="usb-audio" ;; [ -z "${SOUND:-}" ] && SOUND="usb-audio" ;;
@@ -748,17 +743,21 @@ setMachine() {
esac esac
case "${id,,}" in
"winvistax86"* | "win7x86"* )
# Fix boot loop issue on AMD EPYC processors
[ -z "${CPU_MODEL:-}" ] && CPU_MODEL="qemu32" ;;
esac
case "${id,,}" in case "${id,,}" in
"winxp"* | "win2003"* | "winvistax86"* | "win7x86"* | "win2008r2x86"* ) "winxp"* | "win2003"* | "winvistax86"* | "win7x86"* | "win2008r2x86"* )
if isQ35 "${MACHINE:-q35}"; then if isQ35 "${MACHINE:-q35}"; then
# Fix instability on AMD EPYC processors
if [ -z "${CPU_MODEL:-}" ] && [[ "${id,,}" == *"x86"* ]]; then
CPU_MODEL="qemu32"
fi
# Prevent bluescreen if 64 bit PCI hole size is >2G. # Prevent bluescreen if 64 bit PCI hole size is >2G.
ARGS="-global q35-pcihost.x-pci-hole64-fix=false" ARGS="-global q35-pcihost.x-pci-hole64-fix=false"