Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-22 Thread Li, Tianyou
, Tianyou Cc: Dr. David Alan Gilbert ; qemu-devel@nongnu.org; Stefan Hajnoczi Subject: Re: [Qemu-devel] Persistent Main Memory in QEmu Hi Tianyou, On Fri, Apr 22, 2016 at 5:35 PM, Li, Tianyou wrote: > I found the mmap was invoked in qemu with option MAP_ANONYMOUS, which will > zero pages. A

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-22 Thread Artyom Tarasenko
Hi Tianyou, On Fri, Apr 22, 2016 at 5:35 PM, Li, Tianyou wrote: > I found the mmap was invoked in qemu with option MAP_ANONYMOUS, which will > zero pages. After a simple workaround right now pc.ram region will keep its > content through reboot/shutdown. Can you publish the workaround? I think

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-22 Thread Li, Tianyou
: Friday, April 22, 2016 11:09 AM To: Dr. David Alan Gilbert Cc: Artyom Tarasenko ; qemu-devel@nongnu.org Subject: RE: [Qemu-devel] Persistent Main Memory in QEmu > I wonder if QEMU or the guest (BIOS? Kernel?) is zeroing the memory ? For > normal memory I'd expect it to zero it. Z

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-21 Thread Li, Tianyou
e- From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] Sent: Thursday, April 21, 2016 6:52 PM To: Li, Tianyou Cc: Artyom Tarasenko ; qemu-devel@nongnu.org Subject: Re: [Qemu-devel] Persistent Main Memory in QEmu * Li, Tianyou (tianyou...@intel.com) wrote: > Hi Artyom, Dave & othe

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-21 Thread Dr. David Alan Gilbert
e more details or give me some hints? Thanks. I wonder if QEMU or the guest (BIOS? Kernel?) is zeroing the memory ? For normal memory I'd expect it to zero it. Dave > > > Regards, > Tianyou > > -Original Message- > From: Li, Tianyou > Sent: Tuesday, April 1

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-21 Thread Li, Tianyou
ilto:atar4q...@gmail.com] Sent: Tuesday, April 19, 2016 4:20 AM To: Li, Tianyou 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 wrote: > Currently we are trying to implement below functionalities in QEmu

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-21 Thread Dr. David Alan Gilbert
Regards, > Tianyou > > > -Original Message- > From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] > Sent: Wednesday, April 20, 2016 4:36 PM > To: Li, Tianyou > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] Persistent Main Memory in QEmu >

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-20 Thread Li, Tianyou
@nongnu.org Subject: Re: [Qemu-devel] Persistent Main Memory in QEmu * Li, Tianyou (tianyou...@intel.com) wrote: > Hi, > > 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 thr

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-20 Thread Dr. David Alan Gilbert
* Li, Tianyou (tianyou...@intel.com) wrote: > Hi, > > 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 man

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-18 Thread Li, Tianyou
il 19, 2016 4:20 AM To: Li, Tianyou 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 wrote: > Currently we are trying to implement below functionalities in QEmu: > main memory in guest can be logicall

Re: [Qemu-devel] Persistent Main Memory in QEmu

2016-04-18 Thread Artyom Tarasenko
Hi Tianyou, On Mon, Apr 18, 2016 at 5:50 AM, Li, Tianyou 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

[Qemu-devel] Persistent Main Memory in QEmu

2016-04-18 Thread Li, Tianyou
Hi, 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 s