direct-io.hg

changeset 14402:487e37c22b28

Fix the python type dismatch exception when HVM restore

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Fri Mar 16 10:05:57 2007 +0000 (2007-03-16)
parents cd8d2a4d46e4
children 26a1378d5ece
files tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Thu Mar 15 23:03:22 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Fri Mar 16 10:05:57 2007 +0000
     1.3 @@ -193,8 +193,8 @@ def restore(xd, fd, dominfo = None, paus
     1.4      is_hvm = dominfo.info.is_hvm()
     1.5      if is_hvm:
     1.6          hvm  = dominfo.info['memory_static_min']
     1.7 -        apic = dominfo.info['platform'].get('apic', 0)
     1.8 -        pae  = dominfo.info['platform'].get('pae',  0)
     1.9 +        apic = int(dominfo.info['platform'].get('apic', 0))
    1.10 +        pae  = int(dominfo.info['platform'].get('pae',  0))
    1.11          log.info("restore hvm domain %d, mem=%d, apic=%d, pae=%d",
    1.12                   dominfo.domid, hvm, apic, pae)
    1.13      else: