Apply qemu cpu/memory settings from artifact config
This commit is contained in:
parent
08ed3461ad
commit
01d6c89d60
10
debug.go
10
debug.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user