From: Andi Kleen Subject: Re: [RFC PATCH 25/35] Add Xen time abstractions Date: Tue, 9 May 2006 23:50:03 +0200 Message-ID: <200605092350.03886.ak@suse.de> References: <20060509084945.373541000@sous-sol.org> <20060509085157.908244000@sous-sol.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060509085157.908244000@sous-sol.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: virtualization@lists.osdl.org Cc: Chris Wright , Ian Pratt , xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org List-Id: xen-devel@lists.xenproject.org On Tuesday 09 May 2006 09:00, Chris Wright wrote: > Add support for Xen time abstractions. To avoid expensive traps into > the hypervisor, the passage of time is extrapolated from the local TSC > and a set of timestamps and scaling factors exported to the guest via > shared memory. Xen also provides a periodic interrupt facility which > is used to drive updates of xtime and jiffies, and perform the usual > process accounting and profiling. There is far too much code duplication in there. I think you need to refactor the main time.c a bit first and strip that down. Also you can drop all the __x86_64__ support for now. -Andi >