From: Rik van Riel Subject: Re: Re: [BUG 1282] time jump on live migrate root cause & proposed fixes Date: Thu, 7 Aug 2008 09:06:45 -0400 Message-ID: <20080807090645.11126cce@bree.surriel.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, 07 Aug 2008 11:25:34 +0100 Keir Fraser wrote: > It does look like the code should work. Yeah, it looks like it should. Unfortunately it doesn't :) > What kernel specifically have you reproduced this behaviour with? The current RHEL 5 kernel (2.6.18-92.1.6.el5xen). I have instrumented time_resume and am seeing something very strange. I have two systemtap hooks, one when entering the function and one when returning from the function. This output contains the trace info from two live migrates. As you can see, time_resume() manages to get a new system_timestamp from each host just fine, through get_time_values_from_xen(). However, the data that update_wallclock() retrieves from the HYPERVISOR_shared_info does not change. Even wc_version stays the same across both host systems! # ./time_resume.stap entering time_resume, secs = 1217875833, nsecs = 869795597 system_time = 237323812007279, shadow_tv_version = 350 leaving time_resume, secs = 1217875833, nsecs = 869795597 system_time = 604085945766733, shadow_tv_version = 350 entering time_resume, secs = 1217875833, nsecs = 869795597 system_time = 604262961766733, shadow_tv_version = 350 leaving time_resume, secs = 1217875833, nsecs = 869795597 system_time = 237501337935436, shadow_tv_version = 350 -- All rights reversed.