From mboxrd@z Thu Jan 1 00:00:00 1970 From: ANNIE LI Subject: Re: how to keep time of windows pvhvm synchronized with host after resuming Date: Wed, 22 Sep 2010 16:51:17 +0800 Message-ID: <4C99C385.3040602@oracle.com> References: <4C91D5C0.5030802@oracle.com> <291EDFCB1E9E224A99088639C47620228CF769FEC1@LONPMAILBOX01.citrite.net> <20100916091914.GC11387@whitby.uk.xensource.com> <4C9346AA.4040902@oracle.com> <20100917114304.GE11387@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100917114304.GE11387@whitby.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: Paul Durrant , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > Not that I can remember. You could try scattering printks in > hvm_latch_shinfo_size() to see if it's getting called at all, > and in arch_set_info_guest() to see if it's calling > update_domain_wallclock_time() like it should. hvm_latch_shinfo_size() is called and HVM_PARAM_CALLBACK_IRQ is sent to do_hvm_op in hvm.c. Totally, 4 functions call update_domain_wallclock_time, they are rtc_set_time(), arch_set_info_guest(), construct_dom0() and do_settime().The result is: rtc_set_time() is never called. construct_dom0() and arch_set_info_guest() are called once. However, update_domain_wallclock_time() was not called in arch_set_info_guest() since v->vcpu_id is 1 instead of 0. Is it the expected result? do_settime() is called regularly. The call route is do_platform_op()->XENPF_settime->do_settime()->update_domain_wallclock_time(). Is do_settime(...) the function to update wc_sec and wc_nsec? Parameters secs and nsecs are always variable. It seems wc_sec and wc_nsec are calculated from secs, nsecs and system_time_base, but wc_sec keep unchanged all the time. Anything else i missed? Thanks Annie