[PATCH v2] Handle gdb.MemoryError exception in dump-guest-memory.py

2020-02-14 Thread Kevin Buettner
onsists of all zeros and, according to the kernel's logic, has never been written to. This commit makes a small change to the dump-guest-memory script to cause inaccessible memory to be dumped as zeroes. This avoids the exception and places the correct values in the guest memory dump. Signe

[PATCH] Handle gdb.MemoryError exception in dump-guest-memory.py

2020-02-14 Thread Kevin Buettner
I recently investigated a bug in which the dump-guest-memory.py script sees a gdb.MemoryError exception while attempting to dump memory obtained from a QEMU core dump. (And, yes, dump-guest-core=on was specified in the -machine option of the QEMU invocation.) It turns out that memory region in qu