1
0

Apply qemu cpu/memory settings from artifact config

This commit is contained in:
dump_stack() 2019-08-19 22:43:08 +00:00
parent 08ed3461ad
commit 01d6c89d60
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -105,6 +105,16 @@ func debugHandler(kcfg config.KernelConfig, workPath, kernRegex, gdb string,
return 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) q.SetKASLR(kaslr)
if !smep { if !smep {