1
0

feat: set -cpu max, also for non-kvm

This commit is contained in:
dump_stack() 2023-05-17 17:45:34 +00:00
parent e1ac462642
commit a607ce62d1
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -247,8 +247,11 @@ func (q *System) Args() (qemuArgs []string) {
qemuArgs = append(qemuArgs, "-initrd", q.kernel.InitrdPath)
}
if (q.arch == X86x64 || q.arch == X86x32) && kvmExists() {
qemuArgs = append(qemuArgs, "-enable-kvm", "-cpu", "host")
if q.arch == X86x64 || q.arch == X86x32 {
if kvmExists() {
qemuArgs = append(qemuArgs, "-enable-kvm")
}
qemuArgs = append(qemuArgs, "-cpu", "max")
}
if q.arch == X86x64 && runtime.GOOS == "darwin" {