feat: set -cpu max, also for non-kvm
This commit is contained in:
parent
e1ac462642
commit
a607ce62d1
@ -247,8 +247,11 @@ func (q *System) Args() (qemuArgs []string) {
|
|||||||
qemuArgs = append(qemuArgs, "-initrd", q.kernel.InitrdPath)
|
qemuArgs = append(qemuArgs, "-initrd", q.kernel.InitrdPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (q.arch == X86x64 || q.arch == X86x32) && kvmExists() {
|
if q.arch == X86x64 || q.arch == X86x32 {
|
||||||
qemuArgs = append(qemuArgs, "-enable-kvm", "-cpu", "host")
|
if kvmExists() {
|
||||||
|
qemuArgs = append(qemuArgs, "-enable-kvm")
|
||||||
|
}
|
||||||
|
qemuArgs = append(qemuArgs, "-cpu", "max")
|
||||||
}
|
}
|
||||||
|
|
||||||
if q.arch == X86x64 && runtime.GOOS == "darwin" {
|
if q.arch == X86x64 && runtime.GOOS == "darwin" {
|
||||||
|
Loading…
Reference in New Issue
Block a user