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-devel

[Xen-devel] [PATCH] Fix xm dump-core command for paused domain

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm dump-core command for paused domain
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Thu, 13 Sep 2007 17:11:43 +0900
Delivery-date: Thu, 13 Sep 2007 01:12:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

When I got a core dump of a paused domain by xm dump-core command, 
the domain began to run automatically. 

# xm pause vm1
# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   747     2     r-----    121.1
vm1                                          1   256     1     --p---     26.6
# xm dump-core vm1
Dumping core of domain: vm1 ...
# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   747     2     r-----    129.5
vm1                                          1   256     1     -b----     26.6


This patch keeps the domain state before getting a core dump of 
a domain by xm dump-core command.  The test results are as follows. 

# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   747     2     r-----     64.8
vm1                                          1   128     1     r-----     94.0
vm2                                          2   128     1     --p---     80.9
# xm dump-core vm1
Dumping core of domain: vm1 ...
# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   747     2     r-----     70.1
vm1                                          1   128     1     r-----    109.4
vm2                                          2   128     1     --p---     80.9
# xm dump-core vm2
Dumping core of domain: vm2 ...
# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   747     2     r-----     75.2
vm1                                          1   128     1     r-----    131.1
vm2                                          2   128     1     --p---     80.9


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_dumpcore.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix xm dump-core command for paused domain, Masaki Kanno <=