1
0

feat: emulate a cpu on macOS with all features supported by KVM

This commit is contained in:
dump_stack() 2023-05-21 14:33:46 +00:00
parent b8817a4930
commit b88ab7cca3
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -255,7 +255,7 @@ func (q *System) Args() (qemuArgs []string) {
} }
if q.arch == X86x64 && runtime.GOOS == "darwin" { if q.arch == X86x64 && runtime.GOOS == "darwin" {
qemuArgs = append(qemuArgs, "-accel", "hvf", "-cpu", "host") qemuArgs = append(qemuArgs, "-accel", "hvf", "-cpu", "max")
} }
qemuArgs = append(qemuArgs, "-append", q.cmdline()) qemuArgs = append(qemuArgs, "-append", q.cmdline())