From: Keir Fraser Date: Thu, 31 Jan 2008 09:43:05 +0000 (+0000) Subject: Fix xm shutdown/reboot for HVM domain of IA64 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14341^2~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d113c0a940d5a6165cec5fbb059ce90ba3b128c8;p=xen.git 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 --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 96f65287b7..97f51d2383 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -481,7 +481,6 @@ class XendDomainInfo: hvm_pvdrv = xc.hvm_get_param(self.domid, HVM_PARAM_CALLBACK_IRQ) if not hvm_pvdrv: code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason] - xc.domain_destroy_hook(self.domid) log.info("HVM save:remote shutdown dom %d!", self.domid) xc.domain_shutdown(self.domid, code)