From: "Zhai, Edwin" Subject: memsize for HVM save/restore Date: Sat, 24 Mar 2007 19:37:21 +0800 Message-ID: <20070324113720.GX21485@edwin-srv.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir , Ewan Mellor Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org As you know, HVM save/restore broke recently because restored config miss guest memsize that used by xc_hvm_restore to locate some pfn. After discussion, we decided to remove the pfn deduction logic from restore side by adding a general memory layout. I have a patch for it. But then qemu broke, because it also require the memsize to locate the share page. We can't use the previous method, as it requires a lot of changes in qemu. The memsize in xmconfig file is only used at the beginning of create, then lost when runing and restore. we have memory_{dynamic,static}_{max,min} for keeping mem config, but all of them are useless in this case. I have witnessed the fluctuation of memsize config: first as 'memory', then 'memory_static_min', now disappear. Guest memsize is an important parameter, so it should be constantly kept in an fixed config entry just like others(vcpus...). Am I right? -- best rgds, edwin