[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-ia64-devel
Subject:    [Xen-ia64-devel] [PATCH] Fix xm shutdown/reboot for HVM domain of
From:       Masaki Kanno <kanno.masaki () jp ! fujitsu ! com>
Date:       2008-01-31 8:31:42
Message-ID: 37C863E3B517F4kanno.masaki () jp ! fujitsu ! com
[Download RAW message or body]

Hi,

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>

Best regards,
 Kan


["destroy_hook.patch" (application/octet-stream)]

diff -r 5f997b5b8a58 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py	Wed Jan 30 15:19:22 2008 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Jan 31 16:32:32 2008 +0900
@@ -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)
 


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic