From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zachary Amsden Subject: Re: Xen & VMI? Date: Wed, 07 Mar 2007 01:17:09 -0800 Message-ID: <45EE8315.3020800@vmware.com> References: <45ED82D9.6050204@codemonkey.ws> <8FFF7E42E93CC646B632AB40643802A80229779B@scsmsx412.amr.corp.intel.com> <20070306203712.GC21736@elte.hu> <1173228246.4644.85.camel@localhost.localdomain> <20070307081510.GB15111@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070307081510.GB15111@elte.hu> Sender: linux-kernel-owner@vger.kernel.org To: Ingo Molnar Cc: Rusty Russell , "Nakajima, Jun" , virtualization , Roland McGrath , Anthony Liguori , Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org, Jan Beulich , Daniel Hecht List-Id: virtualization@lists.linuxfoundation.org Ingo Molnar wrote: > For example, VMI_CALL_SetAlarm takes a 'cycles' argument. Cycles is a > quite bad unit for an API, it should be absolute time, nanosec or > picosec based instead. We could easily see CPUs that have /no concept of > Actually, putting the unit in terms of cycles is more portable and flexible. Rather than perform a conversion from cycles to nano/femto/pico seconds, the raw cycle count is exposed, along with the current clock frequency. This allows the timer infrastructure to merely do one conversion, from cycles to real time, rather than converting to an arbitrary time unit which may change with operating systems and time and thus break the ABI. Zach