1
0
Fork 0

Use HVF on macOS

timestamps
dump_stack() 2018-09-21 00:13:29 +00:00
parent 2acf22802e
commit 663407b241
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,10 @@ func (q *QemuSystem) Start() (err error) {
qemuArgs = append(qemuArgs, "-enable-kvm")
}
if q.arch == X86_64 && runtime.GOOS == "darwin" {
qemuArgs = append(qemuArgs, "-accel", "hvf", "-cpu", "host")
}
q.cmd = exec.Command("qemu-system-"+string(q.arch), qemuArgs...)
if q.pipe.stdin, err = q.cmd.StdinPipe(); err != nil {