[xen-unstable] ia64, xend: Close nvram file when rebooting HVM domain

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen-unstable] ia64, xend: Close nvram file when rebooting HVM domain

Xen patchbot-unstable
# HG changeset patch
# User Keir Fraser <[hidden email]>
# Date 1197454134 0
# Node ID 12cf63d3e4a211dd3c02a408e87b936b593cdd61
# Parent  7b4e560d6caf25fe43edd3d5a86701f8cbc992f8
ia64, xend: Close nvram file when rebooting HVM domain
Signed-off-by: Masaki Kanno <[hidden email]>
---
 tools/python/xen/xend/XendDomainInfo.py |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r 7b4e560d6caf -r 12cf63d3e4a2 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Wed Dec 12 10:08:14 2007 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py Wed Dec 12 10:08:54 2007 +0000
@@ -1880,8 +1880,6 @@ class XendDomainInfo:
 
         self._cleanupVm()
         if self.dompath is not None:
-            if self.domid is not None:
-                xc.domain_destroy_hook(self.domid)
             self.destroyDomain()
 
         self._cleanup_phantom_devs(paths)
@@ -1899,6 +1897,7 @@ class XendDomainInfo:
 
         try:
             if self.domid is not None:
+                xc.domain_destroy_hook(self.domid)
                 xc.domain_destroy(self.domid)
                 for state in DOM_STATES_OLD:
                     self.info[state] = 0

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog