Hi Artyom,

Thanks for your pointer! I have tried the -mem-path option, and right now 
looking into the code to see if the content of the file will be used during the 
guest Linux running next time. Will let you know the result. 

Stefan's post is definitely helpful, thanks for letting me know. Could you 
please let me know if you have more QEmu memory management documentation about 
internals? I have googled around, but more likely to hear from your advice. 
Thanks.

Regards,
Tianyou

-----Original Message-----
From: Artyom Tarasenko [mailto:atar4q...@gmail.com] 
Sent: Tuesday, April 19, 2016 4:20 AM
To: Li, Tianyou <tianyou...@intel.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Persistent Main Memory in QEmu

Hi Tianyou,

On Mon, Apr 18, 2016 at 5:50 AM, Li, Tianyou <tianyou...@intel.com> wrote:
> Currently we are trying to implement below functionalities in QEmu: 
> main memory in guest can be logically viewed as persistent and its 
> content can be survived through reboot or shutdown/powerup.
>
> I have looked into the QEmu memory management code include memory.c, 
> exec.c and other related source, unfortunately I do not have the 
> chance to get clue of how to make QEmu main memory persistent. I found 
> that pmemsave could dump physical memory of guest, but I could not 
> find how to restore the dump file before VM startup to execution.
>
>
>
> Could anyone provide some hints to me? Thanks in advance!

Is the option "-mem-path=/path/to/mem-file" what you are looking for?

Stefan wrote a nice post about QEMU RAM internals:
http://blog.vmsplice.net/2016/01/qemu-internals-how-guest-physical-ram.html

Regards,
Artyom


--
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu

Reply via email to