From: Keir Fraser Subject: Re: [PATCH] Fix xm reboot --wait Date: Mon, 07 Aug 2006 15:39:54 +0100 Message-ID: References: <34C6BA0B176095kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <34C6BA0B176095kanno.masaki@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Masaki Kanno , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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? 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). -- Keir