Use all host cpu features
This commit is contained in:
parent
54a3704bc2
commit
89305b7011
@ -66,6 +66,8 @@
|
|||||||
|
|
||||||
- dmesg is not cleaned before the start of module/exploit anymore.
|
- dmesg is not cleaned before the start of module/exploit anymore.
|
||||||
|
|
||||||
|
- qemu/kvm will use all host cpu features.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
- *Kernel factory* is removed completely in favor of incremental
|
- *Kernel factory* is removed completely in favor of incremental
|
||||||
|
@ -213,6 +213,7 @@ func (q *System) Start() (err error) {
|
|||||||
qemuArgs := []string{"-snapshot", "-nographic",
|
qemuArgs := []string{"-snapshot", "-nographic",
|
||||||
"-hda", q.drivePath,
|
"-hda", q.drivePath,
|
||||||
"-kernel", q.kernel.KernelPath,
|
"-kernel", q.kernel.KernelPath,
|
||||||
|
"-cpu", "host",
|
||||||
"-smp", fmt.Sprintf("%d", q.Cpus),
|
"-smp", fmt.Sprintf("%d", q.Cpus),
|
||||||
"-m", fmt.Sprintf("%d", q.Memory),
|
"-m", fmt.Sprintf("%d", q.Memory),
|
||||||
"-device", "e1000,netdev=n1",
|
"-device", "e1000,netdev=n1",
|
||||||
@ -232,7 +233,7 @@ func (q *System) Start() (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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")
|
||||||
}
|
}
|
||||||
|
|
||||||
qemuArgs = append(qemuArgs, "-append", q.cmdline())
|
qemuArgs = append(qemuArgs, "-append", q.cmdline())
|
||||||
|
Loading…
Reference in New Issue
Block a user