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-users

Re: [Xen-users] Timing Adjustment on Xen

To: Priya <pbhat@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Timing Adjustment on Xen
From: Christopher Chen <muffaleta@xxxxxxxxx>
Date: Mon, 16 Mar 2009 18:34:22 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 16 Mar 2009 18:34:59 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=02iDv+pDzZqYaZHFb0I22cHvPwPQMBuQTHGKycDgyd0=; b=gMWSP8feiGGow7van7xpilUg8PfFs9hduipXd8SThuRg1UUammqB/0c5B814GFmLw1 vkAIbNZiW4ZVCFrVsbd2M3pdnXEZo1OG31V1b/tSmOzuf8T4wqITqRY/j6bOHoqTHhaa OUMUl3CG2k/GL+Pc1GTV6Wgsya5TpcTTZuyi8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=eytIlGfFlqQrfibN/+jOYgr3a7RLdV1//5g2enu99ek6H65Mc8PZfKVlXsCavsN+95 HR57geYwGnfiQVbUPt9dGhB4x1mwuyFrKFQKkS36sKZnLqaqMd40LpNBDj/hd1EFXfqi aGEQbC4nN/7sBLY4ysUPp6FaEsKuc6cmThbfI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5c3550fe0903161817g50368237we2a6699c4c0d61a5@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <5c3550fe0903161817g50368237we2a6699c4c0d61a5@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I've found that having the DomU's time locked to the Dom0 leads to
weird confusion after a live migration, even when both Dom0 machines
are locked to the same NTP host. I've cut them loose in my linux DomUs
with independent wallclock.

Sorry, I'm sure that's not what you wanted to know, but an observation.

On Mon, Mar 16, 2009 at 6:17 PM, Priya <pbhat@xxxxxxxxxxxx> wrote:
> Hello all,
>
> I have some questions about how timing is taken care of on different
> Domains in Xen.
>
> 1. How is time kept in Dom0? Considering that dom0 is also a virtual
> machine, one possibility is that its timing interface might also be
> virtualized. However it could be counting the actual number of
> interrupts sent by the physical (not virtualized) timer. I am not sure
> which one these is the case.
>
> 2. The Xen documentation
> (http://www.linuxtopia.org/online_books/linux_virtualization/xen_3.0_interface_guide/linux_virualization_xen_interface_6.html)
> says that
>
> Xen includes a periodic ticker which sends a timer event to the
> currently executing domain every 10ms. The Xen scheduler also sends a
> timer event whenever a domain is scheduled; this allows the guest OS
> to *adjust*  for the time that has passed while it has been inactive.
> In addition, Xen allows each domain to request that they receive a
> timer event sent at a specified system time by using the
> set_timer_op() hypercall. Guest OSes may use this timer to implement
> timeout values when they block.
>
> My question is, how exactly does a guest domain "adjust" for the
> difference between its time and the actual time. In other words, what
> mechanisms are used to compensate for the lost time during which the
> guest dom was not in context?
>
> 3. I need to access the Time Stamp counter (this is what it is called
> in VMWare) from DomU. In other words, I need to know how many ticks of
> the physical hardware counter passes between two instructions getting
> executed on a user/guest domain. What is the way to do this?
>
> Cheers!
> ./pr
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>



-- 
Chris Chen <muffaleta@xxxxxxxxx>
"I want the kind of six pack you can't drink."
-- Micah

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>