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: