direct-io.hg

changeset 12236:e5067f9b268f

[XEND] Fix HVM image shutdown.

Missed HVM image creation's hook into XendDomainInfo.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Nov 03 15:15:16 2006 +0000 (2006-11-03)
parents b21ff7716f87
children b5c50a603044
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Fri Nov 03 12:32:26 2006 +0000
     1.2 +++ b/tools/python/xen/xend/image.py	Fri Nov 03 15:15:16 2006 +0000
     1.3 @@ -460,8 +460,8 @@ class HVMImageHandler(ImageHandler):
     1.4  
     1.5          reason = vm._readDom('control/shutdown')
     1.6          log.debug("hvm_shutdown fired, shutdown reason=%s", reason)
     1.7 -        for x in shutdown_reasons.keys():
     1.8 -            if shutdown_reasons[x] == reason:
     1.9 +        for x in DOMAIN_SHUTDOWN_REASONS.keys():
    1.10 +            if DOMAIN_SHUTDOWN_REASONS[x] == reason:
    1.11                  vm.info['shutdown'] = 1
    1.12                  vm.info['shutdown_reason'] = x
    1.13                  vm.refreshShutdown(vm.info)