config(qemu): support TSO on macOS 15

This commit is contained in:
osy 2024-10-03 22:38:39 -07:00
parent aa4f259d64
commit 164e3126d2
2 changed files with 5 additions and 3 deletions

View file

@ -452,7 +452,11 @@ extension QEMUArchitecture {
#if os(iOS) || os(visionOS)
return hasHypervisorSupport
#else
return false
if #available(macOS 15, *) {
return true
} else {
return false
}
#endif
}

View file

@ -73,13 +73,11 @@ struct VMConfigQEMUView: View {
Toggle("Use Hypervisor", isOn: $config.hasHypervisor)
.help("Only available if host architecture matches the target. Otherwise, TCG emulation is used.")
.disabled(!system.architecture.hasHypervisorSupport)
#if os(iOS) || os(visionOS)
if config.hasHypervisor {
Toggle("Use TSO", isOn: $config.hasTSO)
.help("Only available when Hypervisor is used on supported hardware. TSO speeds up Intel emulation in the guest at the cost of decreased performance in general.")
.disabled(!system.architecture.hasTSOSupport)
}
#endif
Toggle("Use local time for base clock", isOn: $config.hasRTCLocalTime)
.help("If checked, use local time for RTC which is required for Windows. Otherwise, use UTC clock.")
Toggle("Force PS/2 controller", isOn: $config.hasPS2Controller)