Hi, Maybe you are trying to write into read-only, device MMIO or unassigned address? You can launch qemu with '-S' and then try 'info mtree' qemu monitor command to see the memory mapping.
// Sergey On 24.06.2014 11:20, Shubham Gupta wrote: > Hello > > I am attempting to write into the guest memory state (before the guest > is launched) using the cpu_physical_memory_write function. While some > values are being correctly written into the guest memory (confirmed by > a cpu_physical_memory_read just after the write), some are not. Is > there an explanation for this behavior? Or am I using the wrong > function to accomplish what I want? Thanks in advance. > > Shubham Gupta