1
0

Use HVF on macOS

This commit is contained in:
dump_stack() 2018-09-21 00:13:29 +00:00
parent 2acf22802e
commit 663407b241

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 {