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

Fwd: Re: [Xen-devel] Where is xtime updated in a domU with an independen

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Fwd: Re: [Xen-devel] Where is xtime updated in a domU with an independent wallclock?
From: Jay Patel <nitrofin@xxxxxxxxx>
Date: Wed, 2 May 2007 12:23:37 -0700 (PDT)
Delivery-date: Wed, 02 May 2007 12:22:14 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Hi9ty4fO1aH3mazV84H0BMAdLbdJGPCXFSnBBY7xi50l2TB5Ejxf2eXN+ZEg/rf5PRnOjDTomL4vu9uUDH2F9pZzWluvyx3g+QJIgb/rryiVqadSL2aTzoZYJrSD8VkS7LHoo01OiMnTBER/g3R7muuv6a+/DGB3c2MfeZvGQbI=;
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
Pardon my stupidity.

Note: forwarded message attached.

Cheers,
Jay.



Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
--- Begin Message ---
To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Where is xtime updated in a domU with an independent wallclock?
From: Jay Patel <nitrofin@xxxxxxxxx>
Date: Wed, 2 May 2007 12:21:48 -0700 (PDT)
In-reply-to: <C25DF941.6B41%Keir.Fraser@xxxxxxxxxxxx>
Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:



On 2/5/07 07:41, "Jay Patel" <nitrofin@xxxxxxxxx> wrote:

I have just started looking at the code for Xen so please bear with me.
 
A domU Linux kernel running with independent_wallclock=1 seems to sync its  time with dom0 after every "xm unpause" (obviously preceded by an "xm  pause").
 
I don't see where the xtime variable is being updated after an "xm unpause",  i.e., domain_unpause_by_systemcontroller(). Right after the unpause, it seems to  me that the xtime in the domU should be what it were just prior to the  pause.

Yes, a guest with independent wallclock should never sync with the wallclock time record provided by Xen, even after an unpause (the unpause is not explicitly visible to the guest anyway).


Except this is not the case. The DomU domains with an independent wall clock seems to sync with the Dom0 clock. I've repeated this experiment multiple times on two separate machines. Can anyone verify?

Steps (using xen 3.0.3 with linux kernel 2.6.16.29)

DomU:
(0) get a console to $domU
(1) set /proc/sys/xen/independent_wallclock to 1
(2) run the following sh script: "while true; do date; done"

In Dom0 (as root):
(3) xm pause $domU
(4) wait a few seconds/minutes
(5) xm unpause $domU

The sh script will continue and will output the current time (in relation to Dom0). I am not sure why this is happening. I followed the xen and the linux kernel code and could not see where xtime is being updated.

Anybody have any other insights as to what is going on here?

Cheers,
Jay.


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
--- End Message ---
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • Fwd: Re: [Xen-devel] Where is xtime updated in a domU with an independent wallclock?, Jay Patel <=