From: Masaki Kanno Subject: Re: [PATCH] Fix xm reboot --wait Date: Tue, 08 Aug 2006 18:24:19 +0900 Message-ID: <3AC6BACC6D7DB5kanno.masaki@jp.fujitsu.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Keir, >On 7/8/06 11:20 am, "Masaki Kanno" wrote: > >> This patch fixed 'xm reboot' to work as you expected with the wait >> option. The completion of a VM reboot is detected by observing that >> its Domain-ID changes. >> >> Signed-off-by: Masaki Kanno > >What happens currently? Can 'xm reboot' wait forever because it races the >re-creation of the domain? > Currently 'xm reboot --wait' never ends. (But VM reboot is completed.) The wait option waits for the domain termination by chekcing current domain list (server.xend.domains). But the domain termination cannot be detected because the domain is recreated immediately. >We need a better test than domid. It's not guaranteed that a domain will get >a new domid when it restarts. Perhaps xend should support the wait option >(since it is involved in the restart), or we could add a restart sequence >count to xenstore (but xm oughtn't to access xenstore directly). > I will remake patch based on your advice. Best regards, Kan > -- Keir >