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] create_periodic_time(): why forced to 0.9ms ?

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] create_periodic_time(): why forced to 0.9ms ?
From: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Date: Mon, 2 Jul 2007 13:33:07 +0800
Cc: Russ Blaine <russell.blaine@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 01 Jul 2007 22:37:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2ADD0CB.11ABE%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <46858A99.2000505@xxxxxxx> <C2ADD0CB.11ABE%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
I'm not the original writer, but know some reason for this:)

At the beginning, this logic is used for safe guard in case bad guest set too 
low freq in PIT channel.

The lowest PIT freq we known that time is 1ms (linux 2.6 kernel) and allow some 
inaccuracy because of the round divide(%10, i.e 0.9 ms as you can see).


On Sun, Jul 01, 2007 at 09:44:43PM +0100, Keir Fraser wrote:
> That's a question for whoever at Intel originally wrote that code. I'm sure
> the answer is that anything smaller is too small. :-)  Which is kind of
> reasonable...
> 
>  -- Keir
> 
> On 29/6/07 23:41, "Russ Blaine" <russell.blaine@xxxxxxx> wrote:
> 
> > create_periodic_time() forces the period to be at least 0.9 ms. Can anyone
> > explain the history behind this? Why is this done, and how was this constant
> > chosen?
> > 
> > -----------------------------------------------------
> > Russ Blaine | Solaris Kernel | russell.blaine@xxxxxxx
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 

-- 
best rgds,
edwin

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

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