From: Keir Fraser Subject: Re: Hyperthreading Date: Tue, 30 May 2006 08:13:50 +0100 Message-ID: References: <20060529152231.bc0cffdc.zaitcev@redhat.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060529152231.bc0cffdc.zaitcev@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Pete Zaitcev Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 29 May 2006, at 23:22, Pete Zaitcev wrote: > Does the guest OS need to detect hyperthreading? One would think that > the hypervisor decides what to schedule on what CPU, and the job of > the guest is not to be too smart for its own good. So, my first > reaction was to comment detect_ht() altogether. > > Fedora Core 5 has the code in detect_ht(), though I have no idea what > the results of this are on HT CPUs, if they match the reality. We fake out core and sibling maps in our own drivers/xen/core/smpboot.c. identify_cpu() is called only for the first VCPU, mainly to get common info like CPU make and model and features. -- Keir