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

[Xen-devel] query related to NOW()


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Pradeep Singh, TLS-Chennai" <pradeep_s@xxxxxx>
  • Date: Tue, 27 Feb 2007 15:33:31 +0530
  • Delivery-date: Tue, 27 Feb 2007 02:07:08 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcdaVoi08slyphqFRgC0kRUrQBV4cg==
  • Thread-topic: query related to NOW()


Hi All,

NOW() macro which is used to get current time on xen, makes use of rdtscll().
rdtscll reads the 64 bit timer value from the TSC register on x86 architecture.
AFAIK TSC registers are no longer considered a safe guarntee to determine exact timings on SMP, multicore platform as well as may give incorrect values when used after a wake up from hibernation.

My query is then why is TSC register used in xen to get the current time??
Does this means Xen doesnot have good SMP support and also doesnot support hibernation?
Just to add using TSC register means hampering portability, right? Then why does Xen uses it?

Any pointers or links please.

Please CMIIW.

Thank you.

Pradeep Singh

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

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

 


Rackspace

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