As good finding, after patching win2008r2 to the latest, the clock drift is 
acceptable.

> -----Original Message-----
> From: Fred Liu
> Sent: 星期二, 十二月 24, 2013 20:11
> To: [email protected]
> Subject: RE: [smartos-discuss] feeding HPET (High Precision Event Timer)
> to smartOS's KVM to address windows vm clock drift issue
> 
> > Hi Fred,
> >
> > Sorry for the delay in getting back to you. Can you run the following
> > DTrace one liner to see whether or not the HPET is at least
> > instantiated by the virtual machine?
> >
> > dtrace -n 'pid$target::hpet*:entry{ @[probefunc] = count(); }' -p
> > <qemupid>
> >
> > If that returns multiple probes, you should run this:
> >
> > dtrace -n 'pid$target::hpet_enabled:return{ @[arg1] = count(); }' -p
> > <qemupid>.
> >
> > If you see non-zero return values from the hpet_enabled call, then
> > you'll know that we have at least created the hpet and IIRC Windows
> > has enabled it.
> >
> > Thanks,
> > Robert
> >
> 
> Robert,
> 
> Thanks for your help and debugging.  Following is the output from Dtrce:
> 
> [root@00-25-90-74-f5-04 ~]# dtrace -n
> 'pid$target::hpet*:entry{ @[probefunc] = count(); }' -p 36155
> dtrace: description 'pid$target::hpet*:entry' matched 21 probes
> 
> ^C
> 
>   hpet_ram_writel                                                   8
>   hpet_set_timer                                                    8
>   hpet_in_legacy_mode                                          123529
>   hpet_timer                                                   123529
>   hpet_calculate_diff                                          123532
>   hpet_time_after                                              247621
>   hpet_ram_readl                                               251764
>   hpet_enabled                                                 375293
>   hpet_get_ticks                                               375293
> [root@00-25-90-74-f5-04 ~]# dtrace -n
> 'pid$target::hpet_enabled:return{ @[arg1] = count(); }' -p 36155
> dtrace: description 'pid$target::hpet_enabled:return' matched 1 probe
> 
> 
> ^C
> 
>                 1            12193
> [root@00-25-90-74-f5-04 ~]#
> 
> It looks like HPET is working but with a weird lag of approximate one
> minute in win7 vm.
> 
> 
> Thanks.
> 
> Fred


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to