Re: MTRR control

Pavel Machek (pavel@Elf.mj.gts.cz)
Sun, 14 Dec 1997 09:46:42 +0100


Hi!

> > > Another problem with proform-1.0 is that it states that it doesn't
> > > work with SMP. Why is this so? Is it simply because the MTRRs of the
> > > CPU which happened to run insmod are modified, but not those of the
> >
> > Yep
> >
> > > other CPU(s)? In that case all that is needed is some mechanism to run
> > > this bit of code for all CPUs.
> >
> > Thats all there is too it. The x86 SMP code has some message passing it
> > uses for sending certain inter CPU events, adding a "sync mtrr" message
> > should do the trick.

Other solution might be to have per-task option of programs 'sticky'
to some CPU. Then, doing this on SMP would be simple task of insmoding
while on cpu #0, and then insmoding at cpu #1. If we have more tasks
like this, then 'sticky to CPU' task flag will be worth
implementing... (Because adding inter CPU event for so not frequent
think like config registers change is overkill in my eyes.)

Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).