All of lore.kernel.org
 help / color / mirror / Atom feed
* how to keep time of windows pvhvm synchronized with host after resuming
@ 2010-09-16  8:30 ANNIE LI
  2010-09-16  8:59 ` Paul Durrant
  0 siblings, 1 reply; 16+ messages in thread
From: ANNIE LI @ 2010-09-16  8:30 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

Hi

When the virtual machine is resumed from suspend, the guest operating 
system's wall-clock time remains at the value it had at the time of the 
suspension. For linux pvm, we can avoid resolve issue by setting 
independent_wallclock=0. However, HVM(or PVHVM) does not support this 
feature.

I did some investigation on how to implement this in windows 
para-virtualization driver. In \include\xen\interface\xen.h, there are 
several variables about timer such as: wc_sec and wc_nsec, and 
vcpu_time_info struct. It is very strange, wc_sec and wc_nsec is always 
zero for my windows vm with para-virtualization driver. Vcpu_time_info 
only contains time info for specific vcpu. Should i use those variables 
to get accurate time for VM? Is there any corresponding source code or 
algorithms available now? Is it safe to simply update vm time after 
resuming?

Citrix 5.6 Windows para-virtualization driver will notify windows kernel 
time change after resuming, and resumed windows vm with Citrix pv driver 
can keep it's time synchronized with host. Would you like to give me 
some clues about how to implement this?

Any help is greatly appreciated.

Thanks
Annie

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-09-28  9:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16  8:30 how to keep time of windows pvhvm synchronized with host after resuming ANNIE LI
2010-09-16  8:59 ` Paul Durrant
2010-09-16  9:19   ` Tim Deegan
2010-09-16 10:00     ` ANNIE LI
2010-09-17 10:44     ` ANNIE LI
2010-09-17 11:43       ` Tim Deegan
2010-09-17 14:37         ` ANNIE LI
2010-09-22  8:51         ` ANNIE LI
2010-09-23  8:19           ` Tim Deegan
2010-09-24 13:53             ` ANNIE LI
2010-09-24 15:18               ` Tim Deegan
2010-09-25  2:26                 ` ANNIE LI
2010-09-25  7:27                   ` ANNIE LI
2010-09-27  9:53                     ` Tim Deegan
2010-09-28  3:54                       ` ANNIE LI
2010-09-28  9:00                         ` Tim Deegan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.