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

RE: [Xen-devel] [PATCH] Enable TSC_RELIABLE for AMD servers

To: "'Dan Magenheimer'" <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Enable TSC_RELIABLE for AMD servers
From: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>
Date: Thu, 22 Oct 2009 09:56:35 -0500
Accept-language: en-US
Acceptlanguage: en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Thu, 22 Oct 2009 08:14:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <30c47024-9fea-4efc-a32b-78e496106be4@default>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <30c47024-9fea-4efc-a32b-78e496106be4@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpRlxWHauLgVHCQQzqsZqIeo7IXDwBkJyAQ
Thread-topic: [Xen-devel] [PATCH] Enable TSC_RELIABLE for AMD servers
The TSC on AMD processors with the invariant TSC
bit is reliable per Xen's definition of the term.

Acked-by: Mark Langsdorf <mark.langsdorf@xxxxxxx> 

-Mark Langsdorf
Operating System Research Center
AMD

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Dan Magenheimer
> Sent: Tuesday, October 20, 2009 10:05 AM
> To: Xen-Devel (E-mail)
> Cc: Langsdorf, Mark; Keir Fraser
> Subject: [Xen-devel] [PATCH] Enable TSC_RELIABLE for AMD servers
> 
> (Mark, please ack)
> 
> Enable TSC_RELIABLE for AMD servers
> 
> Except for a published BIOS errata on family 11h processors,
> all AMD servers that have the Invariant TSC bit set have
> a reliable TSC so Xen should not write to the TSC.
> 
> Signed-off-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
> 
> 
> diff -r d7d7f978d704 xen/arch/x86/cpu/amd.c
> --- a/xen/arch/x86/cpu/amd.c  Tue Oct 20 14:36:01 2009 +0100
> +++ b/xen/arch/x86/cpu/amd.c  Tue Oct 20 08:55:53 2009 -0600
> @@ -465,6 +465,8 @@ static void __devinit init_amd(struct cp
>               if (c->x86_power & (1<<8)) {
>                       set_bit(X86_FEATURE_CONSTANT_TSC, 
> c->x86_capability);
>                       set_bit(X86_FEATURE_NONSTOP_TSC, 
> c->x86_capability);
> +                     if (c->x86 != 0x11)
> +                             
> set_bit(X86_FEATURE_TSC_RELIABLE, c->x86_capability);
>               }
>       }
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 

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

<Prev in Thread] Current Thread [Next in Thread>