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] [RFC] Physical hot-add cpus and TSC

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "Xen-Devel (xen-devel@xxxxxxxxxxxxxxxxxxx)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [RFC] Physical hot-add cpus and TSC
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Date: Wed, 26 May 2010 18:02:16 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Delivery-date: Wed, 26 May 2010 10:03:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5738eada-ede6-4a58-af6b-a7f965aa3ecf@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: <3c6e0679-a0b8-42ae-9e86-36e7fa260e73@default C82300BD.15EF3%keir.fraser@xxxxxxxxxxxxx> <5738eada-ede6-4a58-af6b-a7f965aa3ecf@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acr88xyjlPv/weTNQf+YRVWd5sB0LgAAYydg
Thread-topic: [Xen-devel] [RFC] Physical hot-add cpus and TSC
> Possibly... but the code for whacking the TSC of a CPU after
> C3-state results in a TSC value that is poorly-aligned with other
> running TSCs.  If there is a better way for "whacking" that
> results in a nearly-perfectly-aligned TSC (that would pass
> a "tsc warp test"), that is an option.

It ought to be possible to enhance the "whacking" code to set the TSC based on 
the topologically nearest live CPU and then sanity-check against all others, 
repeating a few times to protect against SMIs etc.  

Ian 

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