|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xm: When dumping core of an errant domain
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207300725 -3600
# Node ID 0834234fd668cb8004abd6cb2c7cf8a6c3211a64
# Parent da35b52c4fd7e73bd0335c881a20b4524e4ce24b
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>
---
tools/python/xen/xm/main.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff -r da35b52c4fd7 -r 0834234fd668 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Thu Apr 03 11:37:23 2008 +0100
+++ b/tools/python/xen/xm/main.py Fri Apr 04 10:18:45 2008 +0100
@@ -1294,13 +1294,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-unstable] xm: When dumping core of an errant domain do not unpause after the,
Xen patchbot-unstable <=
|
|
|
|
|