From: Tim Deegan Subject: Re: HVM save/restore issue Date: Thu, 15 Mar 2007 10:02:44 +0000 Message-ID: <20070315100244.GB32000@york.uk.xensource.com> References: <20070315074842.GA21485@edwin-srv.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <20070315074842.GA21485@edwin-srv.sh.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Zhai, Edwin" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 15:48 +0800 on 15 Mar (1173973722), Zhai, Edwin wrote: > all, > there are 2 issues of HVM save/restore: > 1. restore would cause a type dismatch exception, which can be fixed by attached > patch. I can't reproduce this exception. > if is_hvm: > hvm = dominfo.info['memory_static_min'] > - apic = dominfo.info['platform'].get('apic', 0) > - pae = dominfo.info['platform'].get('pae', 0) > + apic = int(dominfo.info['platform'].get('apic', 0)) > + pae = int(dominfo.info['platform'].get('pae', 0)) AFAICS, 'apic' and 'pae' are mapped through str() when they're used, so I don't see that it helps to cast them to integers now. Is there a reason you don't pass 'hvm' through int() as well? Cheers, Tim. -- Tim Deegan , XenSource UK Limited Registered office c/o EC2Y 5EB, UK; company number 05334508