From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yang Hongyang Subject: Re: [PATCH 1/2]xl: Add "xl uptime" command Date: Thu, 13 May 2010 18:42:25 +0800 Message-ID: <4BEBD791.2050106@cn.fujitsu.com> References: <4BEBC81A.70109@cn.fujitsu.com> <4BEBCC61.3000703@eu.citrix.com> <4BEBD032.5080408@cn.fujitsu.com> <4BEBD20D.1070802@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BEBD20D.1070802@eu.citrix.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: Vincent Hanquez Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 05/13/2010 06:18 PM, Vincent Hanquez wrote: > On 13/05/10 11:10, Yang Hongyang wrote: >>> I find this command basically useless, since on restore the "start_time" >>> is not kept. do we actually need this ? >>> >> >> I think it's sometimes useful. I noticed that just the day before >> yesterday, >> somebody asked in the xen-api list about "uptime" command. > > it is useful if it works :) > > however this version of start_time means "when was this xen domain > started" which is not the VM start time (i.e. "when was my vm booted"). > To be useful start_time need to preserved across migration and > suspend/restore. > > xen-api does the right thing and returns the later. > So more work has to be done to get xl exactly right as xen-api.:) And I noticed that if use xl create, start_time will not be set. xm create will set the start_time properly, I wonder if it is xend that set the start_time or is this a bug? -- Regards Yang Hongyang