Skip to contentSkip to conversation

Hyperthreading

DISCUSSION Pete Zaitcev 3 participants 3 messages May 29, 2006 – May 30, 2006

lore
Share & tools
lore
#0 lore raw

Hi, All:

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.

Thanks,
-- Pete

#1 lore raw
Quoted 7 lines · Pete Zaitcev

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

#2 lore raw
In reply to Pete Zaitcev
Quoted 2 lines · Pete Zaitcev

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.

X86_HT is disabled in arch/i386/Kconfig in the xen-unstable Linux kernel.

christian