From: Keir Fraser Subject: Re: System time monotonicity Date: Wed, 09 Apr 2008 15:41:43 +0100 Message-ID: References: <20080409082539515.00000004064@djm-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080409082539515.00000004064@djm-pc> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "dan.magenheimer@oracle.com" , Ian Pratt , "Tian, Kevin" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 9/4/08 15:25, "Dan Magenheimer" wrote: > Let me clarify... unless my reading of the code is wrong, ALL hvm > guests that rely on ANY (virtual) platform timer are UNKNOWINGLY > relying on the physical TSCs. Thus if the underlying physical > system has unsynchronized TSCs, different vcpus in an SMP HVM > guest (or even the SAME vcpu when rescheduled on another pcpu) > may find that consecutive reads of ANY (virtual) platform timer > are unexpectedly non-monotonic, which violates the whole purpose > of using a PLATFORM timer. This is all true. The logic in vpt.c should be fixed to use Xen's concept of system time and everything, guest TSC included, should be derived from that. -- Keir