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

[Xen-devel] query related to NOW()

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] query related to NOW()
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>