virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* Per-cpu patches on top of PDA stuff...
@ 2006-09-19  3:13 Rusty Russell
  2006-09-19  8:03 ` Rusty Russell
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Rusty Russell @ 2006-09-19  3:13 UTC (permalink / raw)
  To: Jeremy Fitzhardinge, virtualization
  Cc: Andrew Morton, Andi Kleen, Ingo Molnar

Hi Jeremy, all,

	Sorry this took so long, spent last week in Japan at OSDL conf then
netconf.  After several false starts, I ended up with a very simple
implementation, which clashes significantly with your work since then
8(.  I've pushed the patches anyway, but it's going to be significant
work for me to re-merge them, so I wanted your feedback first.

	The first patch simply changes the GDTs to be a straight per-cpu
variable.  I notice that you did a similar thing with your patches, but
this is simpler and avoids wasting space in the UP case.  It's a bit
tricky since we've never referred to per-cpu vars from asm before, but
since we're only referring to the pre-setup versions, it's ok.

	The second patch changes gs to be the per-cpu offset, and by
implication, avoids using it altogether on UP.  This avoids a special
"pda" structure, instead allowing all per-cpu variables to be accessed
this way.  It avoids __thread, which I gave up after creating a horribly
complicated patch which still didn't quite work, and was no more
efficient if we want the kernel to run under Xen anyway.

I really think this is the way to go, and I'll start work on merging
now.

Cheers!
Rusty.
-- 
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2006-09-21  8:54 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-19  3:13 Per-cpu patches on top of PDA stuff Rusty Russell
2006-09-19  8:03 ` Rusty Russell
2006-09-19  8:26   ` Andi Kleen
2006-09-19 20:39   ` Jeremy Fitzhardinge
2006-09-19  8:14 ` Jeremy Fitzhardinge
2006-09-19 21:03   ` Chris Wright
2006-09-19 22:36     ` Jeremy Fitzhardinge
2006-09-20  0:07   ` Rusty Russell
2006-09-20  7:00     ` Andi Kleen
2006-09-20 12:54       ` James Bottomley
2006-09-20 16:09         ` Andi Kleen
2006-09-20 16:15           ` James Bottomley
2006-09-20 16:22             ` Andi Kleen
2006-09-20 16:42               ` James Bottomley
2006-09-20 17:49                 ` Andi Kleen
2006-09-20 18:10                   ` James Bottomley
2006-09-20 18:42                     ` Andi Kleen
2006-09-21  8:54                     ` Rusty Russell
2006-09-19 20:37 ` Chris Wright
2006-09-19 20:40   ` Jeremy Fitzhardinge
2006-09-19 21:08     ` Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).