[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.