Thanks! Yes gdb provides one approach but I was wondering if there was
something built in to QEMU monitor.
Another application I can see for this would be to inject errors into the
memory, This will be useful for testing new NVDIMM-P technology that builds
NVDIMMs out of material that is less reliable than DRAM...
> On Sep 12, 2016, at 7:28 PM, Fam Zheng <f...@redhat.com> wrote:
>> On Mon, 09/12 16:23, Stephen Bates wrote:
> Hi Stephen,
>> I sent this to qemu-discuss with no success so resending to qemu-devel.
>> I am doing some very low level OS design work and wanted to be able to
>> alter some values in the physical memory of my QEMU guest. I can see quite
>> a few ways to print/dump both physical and virtual addresses but nothing
>> that can alter arbitrary physical/virtual addresses?
>> Does such a feature exist in Qemu and if it does are there pointers to
>> documentation for it?
> Have you tried the builtin gdbstub in QEMU? You can add "-s" to the QEMU
> command line and then connect to it from gdb with "target remote :1234". There
> you can inspect or change memory more easily.
>> I do see that we can use file backing for very large memory regions via
>> the memory-backing-file option but I am not really trying to alter massive
>> regions of memory in this case.
>> Stephen Bates