ia64/xen-unstable

changeset 16955:c4a06902febf

Fix xm shutdown/reboot for HVM domain of IA64

xc.domain_destroy_hook() is called twice when we execute
xm shutdown/reboot command to an HVM domain without PV drivers.
The first calling is from shutdown() in XendDomainInfo.py.
The second calling is from destroyDomain() in XendDomainInfo.py.
The first calling is not necessary, so this patch removes it.

A discussion about this patch is as follows.
http://lists.xensource.com/archives/html/xen-ia64-devel/2008-01/msg00232.html

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 31 09:43:05 2008 +0000 (2008-01-31)
parents 1b4fa085bec6
children 938446025b5b
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Jan 31 09:41:32 2008 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Jan 31 09:43:05 2008 +0000
     1.3 @@ -481,7 +481,6 @@ class XendDomainInfo:
     1.4              hvm_pvdrv = xc.hvm_get_param(self.domid, HVM_PARAM_CALLBACK_IRQ)
     1.5              if not hvm_pvdrv:
     1.6                  code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason]
     1.7 -                xc.domain_destroy_hook(self.domid)
     1.8                  log.info("HVM save:remote shutdown dom %d!", self.domid)
     1.9                  xc.domain_shutdown(self.domid, code)
    1.10