1
0
Fork 0

Apply qemu cpu/memory settings from artifact config

timestamps
dump_stack() 2019-08-19 22:43:08 +00:00
parent 08ed3461ad
commit 01d6c89d60
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 10 additions and 0 deletions

View File

@ -105,6 +105,16 @@ func debugHandler(kcfg config.KernelConfig, workPath, kernRegex, gdb string,
return
}
if ka.Qemu.Cpus != 0 {
q.Cpus = ka.Qemu.Cpus
}
if ka.Qemu.Memory != 0 {
q.Memory = ka.Qemu.Memory
}
fmt.Printf("[*] SMP: %d CPUs\n", q.Cpus)
fmt.Printf("[*] Memory: %d MB\n", q.Memory)
q.SetKASLR(kaslr)
if !smep {