On Tue Dec 20, 2005 at 02:06:11 +0000, Dave Airlie wrote:
>>
>> Right. Which is what I've found too. Which led me to wondering: Jeff:
>> how do you plan to do this UP/SMP kernel efficiently? The kernel
>> implements spin_lock as a macro that gets compiled out when building for
>> UP:
>
>I've heard chat on lkml about using alternatives (the kernel ones) to do
>this.. basically at build time you construct a table of every spinlock
>call and patch them all up at CPU hotplug or kernel boot time...
>
>Sounds like magic to me...

Right, the boot time binary rewriting is a pretty cool way of diong
this. This is also what we did with afterburning work, which allowed
you to have one kernel that can be run on hardware and on top of
L4, Xen or UML.

Cheers,

Benno
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to