From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asncP-0007id-R4 for qemu-devel@nongnu.org; Wed, 20 Apr 2016 04:36:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asncM-0008K9-Km for qemu-devel@nongnu.org; Wed, 20 Apr 2016 04:36:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asncM-0008Jx-FE for qemu-devel@nongnu.org; Wed, 20 Apr 2016 04:36:14 -0400 Date: Wed, 20 Apr 2016 09:36:10 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20160420083609.GD2263@work-vm> References: <1A93516D63C74545A87B6EF0983F2B1F052E897C@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1A93516D63C74545A87B6EF0983F2B1F052E897C@SHSMSX103.ccr.corp.intel.com> Subject: Re: [Qemu-devel] Persistent Main Memory in QEmu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Li, Tianyou" Cc: "qemu-devel@nongnu.org" * Li, Tianyou (tianyou.li@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 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. Can you explain what you mean by 'persistent' - where do you intend to store the guests memory? Also, remember that you'll need to save/load the device state as well as the rest of RAM. If you've got a way to preserve RAM then maybe hte xen-save-devices-state qemu command could be used to store the rest of devices. Dave > > Could anyone provide some hints to me? Thanks in advance! > > Regards, > Tianyou -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK