errors which can't backing storage for guest RAM with -mem-path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I found it can't backup the guest RAM when i run simple ram test code with
errors which can't backing storage for guest RAM with integratorcp, the commander is:
qemu-system-arm -M integratorcp -m 1 -semihosting -nographic -mem-path mem.txt -kernel build/emu_
i wrote the patter "0x55" to all of the rest of RAM in my test, after run my test code, it just generate the 1048576 Bytes file, i split these file into 2kB, most of split file is black, some of them just display \00 after open with gedit.
i don't know whether my commander is incorrect, anyone can confirm it for me? i just want to write the guest RAM and read it from host during the guest code is running. but my guest just has simple os without file system and network. so i want to try with this backend RAM ways.
thanks.
js
Changed in qemu: | |
status: | New → Invalid |
The memory region mapped by QEMU for -mem-path is configured such that changes are private to the QEMU process.
If you need an external process to be able to view memory changes, you need to use the modern "memory- backend- file" class with -object arg, and specify share=on to make the data visible to non-QEMU processes.