From: Keir Fraser Subject: Re: [RFC] Physical hot-add cpus and TSC Date: Wed, 26 May 2010 19:01:07 +0100 Message-ID: References: <64b09ca3-fb6e-4c06-907d-94560aab2420@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <64b09ca3-fb6e-4c06-907d-94560aab2420@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (xen-devel@lists.xensource.com)" , Ian Pratt List-Id: xen-devel@lists.xenproject.org On 26/05/2010 18:39, "Dan Magenheimer" wrote: >> 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. > > Well obviously firmware can do it pre-boot, but I don't know > what the impact of the mechanism is on running cpu's. I'd assume > that at least all guest activity would have to be stopped for > some not-so-short period (~10-100msec?) It depends how physical CPU hotplug is implemented doesn't it. I expect there's sufficient firmware involved in such an operation that TSCs could get synced up before host software gets a look in. I don't think we can comment on whether or not there is an issue here without more information. Also, one reason Intel pushed the CPU hotplug logic is for RAS, and offlining CPUs that throw errors, which can clearly be supported with no concerns over TSC sync. -- Keir