Compare commits
2 Commits
b1c7303b01
...
8127c67d30
Author | SHA1 | Date |
---|---|---|
Eric-Paul Ickhorn | 8127c67d30 | |
Eric-Paul Ickhorn | 8703a97059 |
|
@ -17,4 +17,12 @@ then
|
|||
fi
|
||||
|
||||
echo "dump-guest-memory memory.dump" | qmp-shell -H qmp.socket
|
||||
echo "dump memory memory.bin 0 0xa0000" | gdb --core=memory.dump
|
||||
echo "dump memory lower.bin 0 0xa0000" | gdb --core=memory.dump -q
|
||||
echo "dump memory upper.bin 0xc0000 0x400000" | gdb --core=memory.dump -q
|
||||
|
||||
truncate memory.bin --size 64M
|
||||
dd if=lower.bin of=memory.bin
|
||||
dd if=upper.bin of=memory.bin seek=1536
|
||||
|
||||
rm lower.bin
|
||||
rm upper.bin
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
qemu-system-x86_64 -m 512M -enable-kvm -d guest_errors nightloader.bin -qmp unix:qmp.socket,server,nowait
|
||||
qemu-system-x86_64 -m 64M -enable-kvm -d guest_errors nightloader.bin -qmp unix:qmp.socket,server,nowait
|
||||
|
|
Loading…
Reference in New Issue