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

Re: [Xen-devel] Xen timing mode

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Xen timing mode
From: Priya <pbhat@xxxxxxxxxxxx>
Date: Tue, 23 Feb 2010 12:12:07 -0500
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 23 Feb 2010 09:14:27 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=NEwIXOHC8K32OV526R3FciyBMgWtkuNqCx0LAAMcIRY=; b=b7BI0FcufpRt27h+053Gda7GPPja8rM7S5noDpHXYYJqSuzt+WqycMz1H1n5c6Chce 8M8BvLwTg/Nq0ahE38HG+LCzYRPm+TjUi44I6CamDRVazuIJTQ46WqhCioHUVhi9n7BU fw+9HTBExq2WioUyzD6KzkDKqv+sh7YaLh9WQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=D3FLaMHVuRxCT2X4JdJE2ak5xLUJyVftvGS6RE7HfdN1SCkhnRoPpdb+Ue8b2geKlK ZvJN9uL3JXMA6y3rlCewpy/kDiSt59rmuEysDcLb1jELoiseMazaeeX2VZh6nK6XUq7A 17oBpRDuEqcLT34ffOZgyyrrUwcxGq4bnJJmE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C7A9BBF1.B00D%keir.fraser@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <27706447.post@xxxxxxxxxxxxxxx> <C7A9BBF1.B00D%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks !

In that case, how does a para-virtualized user domain find the domain - virtual time ?

--Priya

On Tue, Feb 23, 2010 at 12:08 PM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
Independent_wallclock is specific to Linux PV guests, and is set within the
guest. Timer_mode is specific to HVM guests and is a domain build-time
config option.

 -- Keir

On 23/02/2010 16:50, "PBhat" <pbhat@xxxxxxxxxxxx> wrote:

>
> A question about timing modes in Xen came up after reading the documentation
> on
> http://wiki.xensource.com/xenwiki/XenConfigurationFileOptions?highlight=(inter
> rupts)|(timer)
> configuration file options  and I was wondering if you could help me with
> it.
>
>     * I know that Xen has a facility on the user domains to change the
> timing from something called the ' http://openskill.info/infobox.php?ID=1451
> independent wallclock ' to 'dependent clock' and vice versa. The way to do
> this is to toggle the parameter /proc/sys/xen/independent_wallclock between
> 0 (dependent) and 1 (independent)
>
>
>     * Now, the documentation on the configuration options for xen virtual
> machine under the heading of Timers contains no mention of the above
> mentioned facility, but instead talks about something called a 'timer_mode'
>
>
>  timer_mode: Timer mode (0=delay virtual time when ticks are missed;
> 1=virtual time is always wallclock time
>       timer_mode (default=1; Value='TIMER_MODE')
>
> Now my question is whether the timer mode  = 1 is equivalent to independent_
> wallclock?
>
> I think the answer is no. While timer_mode = 1 decides whether the virtual
> machine is able to read the Domain-0 time, the independent_wallclock decides
> whether you need NTP sychronization on both (user and control) domains or
> not.
>
> Namely, in the timer_mode = 1, the gettimeofday() called from the virtual
> machine will return the domain virtual time, but time_mode = 0
> gettimeofday() instruction from the virtual machine will return the system
> time.
>
> The independent and dependent modes have an effect on whether the virtual
> machines can use the NTP or any other synchronization of Domain-0.
>
> Is my understanding correct?
>
> I further want to know whether the working remains similar on Xen HVMs also.
> In the sense that are Hardware based virtual machines capable of reading the
> Domain-0 system time in an analogous way?
>
>
> Your help would be much appreciated. I am new to this area and I apologize
> if my questions seem too basic.




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