[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Timing Adjustment on Xen


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Priya <pbhat@xxxxxxxxxxxx>
  • Date: Mon, 16 Mar 2009 21:17:04 -0400
  • Delivery-date: Mon, 16 Mar 2009 18:17:45 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=okp1lFzBF71PbNsEL84w7PILSTn2AtQyFtF1uKKV/mnfxuZH12qwb2H9pZ07M4gfYu 8cm+Ldks5wjYUkYWy2IzHSa5yT5XMvTSvZPx4qfaK36+4R+fuu2GXNwt0C9QRZhqgmCn +8WP82OHin45crD5HfNu/Q4TvhlLfsao/cJjk=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello all,

I have some questions about how timing is taken care of on different
Domains in Xen.

1. How is time kept in Dom0? Considering that dom0 is also a virtual
machine, one possibility is that its timing interface might also be
virtualized. However it could be counting the actual number of
interrupts sent by the physical (not virtualized) timer. I am not sure
which one these is the case.

2. The Xen documentation
(http://www.linuxtopia.org/online_books/linux_virtualization/xen_3.0_interface_guide/linux_virualization_xen_interface_6.html)
says that

Xen includes a periodic ticker which sends a timer event to the
currently executing domain every 10ms. The Xen scheduler also sends a
timer event whenever a domain is scheduled; this allows the guest OS
to *adjust*  for the time that has passed while it has been inactive.
In addition, Xen allows each domain to request that they receive a
timer event sent at a specified system time by using the
set_timer_op() hypercall. Guest OSes may use this timer to implement
timeout values when they block.

My question is, how exactly does a guest domain "adjust" for the
difference between its time and the actual time. In other words, what
mechanisms are used to compensate for the lost time during which the
guest dom was not in context?

3. I need to access the Time Stamp counter (this is what it is called
in VMWare) from DomU. In other words, I need to know how many ticks of
the physical hardware counter passes between two instructions getting
executed on a user/guest domain. What is the way to do this?

Cheers!
./pr

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.