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 domain suspend by xend stop

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix domain suspend by xend stop
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Wed, 12 Mar 2008 18:28:53 +0900
Delivery-date: Thu, 13 Mar 2008 04:52:57 -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 stopped xend by xend stop command, a domain suspend processing 
is frequently failed.  This patch solves the problem.

Step to reproduce:
 1. xm new XXX on_xend_stop="suspend" 
 2. xm start XXX
 3. xend stop

In the xend stop, if the domain suspend processing is slept by 
state_updated.wait() of waitForShutdown(), then the domain suspend 
processing is not waked up again because state_updated.notifyAll() 
of _stateSet() is not executed. 

For the reason, processing of _on_domains_changed() is waited by 
domains_lock.acquire() because the domain suspend processing is 
keeping domains_lock and sleeping.  The domain suspend processing 
got domains_lock at cleanup_domains(). 


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

Best regards,
 Kan

Attachment: waitForShutdown.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 domain suspend by xend stop, Masaki Kanno <=