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 the issue: xm command line will hang if using "xm

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]Fix the issue: xm command line will hang if using "xm save dom_id file" to save a guest.
From: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>
Date: Fri, 1 Feb 2008 14:57:28 +0800
Delivery-date: Thu, 31 Jan 2008 22:59:35 -0800
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
Thread-index: Achkn3mJUDBb5cXpS4qkTLqFTKktQAAABEBQ
Thread-topic: [Xen-devel] [PATCH]Fix the issue: xm command line will hang if using "xm save dom_id file" to save a guest.
Fix the issue: xm command line will hang if using "xm save dom_id file"
to save a guest.
  - When saving a guest in early ChangeSet (Before 16750), Xend will
send "SIGKILL" signal to kill qemu process. But in ChangeSet 16750, the
signal is modified to "SIGTERM". However, "SIGTERM" handler has been
registered by SDL in qemu. So when qemu process receives a "SIGTERM",
SDL will catch it and it will push out a "SDL_QUIT" even to qemu. If
qemu can receive that event, it will be successfully terminated. While
we do "xm save", qemu can't go out from the dead loop "while
(suspend_requested) {...}" in main_loop() to handle the SQL_QUIT event.
so it is unable to poll that "SDL_QUIT" event. This makes xm save
command hang. This fix enables qemu to poll the "SDL_QUIT" event while
doing save.

Signed-off-by: Xu Dongxiao <dongxiao.xu@xxxxxxxxx>

Best Regards,
Xu Dongxiao

Attachment: save_hang.patch
Description: save_hang.patch

_______________________________________________
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 the issue: xm command line will hang if using "xm save dom_id file" to save a guest., Xu, Dongxiao <=