From: "Zhai, Edwin" Subject: HVM save/restore issue Date: Thu, 15 Mar 2007 15:48:42 +0800 Message-ID: <20070315074842.GA21485@edwin-srv.sh.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="DKU6Jbt7q3WqK7+M" 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: Tim , Keir Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline all, there are 2 issues of HVM save/restore: 1. restore would cause a type dismatch exception, which can be fixed by attached patch. 2. a saved sdl guest change to vnc after restore as "console_refs" are not empty and "devices" has a new added "vfb" device, which is different from create process. can anybody help to fix this W/O breaking vfb? thanks a lot. -- best rgds, edwin --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="hvm_restore_fix_r14389.patch" Fix the python type dismatch exception when HVM restore Signed-off-by: Zhai Edwin diff -r a0bf35c39ccb tools/python/xen/xend/XendCheckpoint.py --- a/tools/python/xen/xend/XendCheckpoint.py Thu Mar 15 14:31:03 2007 +0800 +++ b/tools/python/xen/xend/XendCheckpoint.py Thu Mar 15 15:34:26 2007 +0800 @@ -193,8 +193,8 @@ def restore(xd, fd, dominfo = None, paus is_hvm = dominfo.info.is_hvm() 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)) log.info("restore hvm domain %d, mem=%d, apic=%d, pae=%d", dominfo.domid, hvm, apic, pae) else: --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --DKU6Jbt7q3WqK7+M--