WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.2-testing] xm: When dumping core of an errant dom

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] xm: When dumping core of an errant domain do not unpause after the
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Apr 2008 02:02:44 -0700
Delivery-date: Tue, 08 Apr 2008 02:08:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207577587 -3600
# Node ID e6db1dd73d78d18b9d139936854f8ca0e67793c0
# Parent  387b5107113771d863593aeb8414d51d542fcdab
xm: When dumping core of an errant domain do not unpause after the
dump. This could allow the domain to e.g., access disks after
fail-over.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
xen-unstable changeset:   17382:0834234fd668cb8004abd6cb2c7cf8a6c3211a64
xen-unstable date:        Fri Apr 04 10:18:45 2008 +0100
---
 tools/python/xen/xm/main.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff -r 387b51071137 -r e6db1dd73d78 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Mon Apr 07 15:12:20 2008 +0100
+++ b/tools/python/xen/xm/main.py       Mon Apr 07 15:13:07 2008 +0100
@@ -1285,13 +1285,13 @@ def xm_dump_core(args):
     try:
         print "Dumping core of domain: %s ..." % str(dom)
         server.xend.domain.dump(dom, filename, live, crash)
+
+        if crash:
+            print "Destroying domain: %s ..." % str(dom)
+            server.xend.domain.destroy(dom)
     finally:
-        if not live and ds == DOM_STATE_RUNNING:
+        if not live and not crash and ds == DOM_STATE_RUNNING:
             server.xend.domain.unpause(dom)
-
-    if crash:
-        print "Destroying domain: %s ..." % str(dom)
-        server.xend.domain.destroy(dom)
 
 def xm_rename(args):
     arg_check(args, "rename", 2)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] xm: When dumping core of an errant domain do not unpause after the, Xen patchbot-3.2-testing <=