WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] how to keep time of windows pvhvm synchronized with host

To: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] how to keep time of windows pvhvm synchronized with host after resuming
From: ANNIE LI <annie.li@xxxxxxxxxx>
Date: Wed, 22 Sep 2010 16:51:17 +0800
Cc: Paul Durrant <Paul.Durrant@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 22 Sep 2010 01:52:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100917114304.GE11387@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
References: <4C91D5C0.5030802@xxxxxxxxxx> <291EDFCB1E9E224A99088639C47620228CF769FEC1@xxxxxxxxxxxxxxxxxxxxxxxxx> <20100916091914.GC11387@xxxxxxxxxxxxxxxxxxxxxxx> <4C9346AA.4040902@xxxxxxxxxx> <20100917114304.GE11387@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>