All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@osdl.org>,
	virtualization <virtualization@lists.osdl.org>,
	Ingo Molnar <mingo@elte.hu>, Andi Kleen <ak@muc.de>
Subject: Re: Per-cpu patches on top of PDA stuff...
Date: Tue, 19 Sep 2006 01:14:51 -0700	[thread overview]
Message-ID: <450FA6FB.9020100@goop.org> (raw)
In-Reply-To: <1158635617.21726.8.camel@localhost.localdomain>

Rusty Russell wrote:
> 	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 current mechanism was specifically introduced by James Bottomley a 
while back; I guess to deal with Voyager strangeness.

As far as setting up the PDA in head.S goes, it turns out to be very 
easy without having to access any per-cpu data, since the whole CPU 
bringup stuff depends on static variables anyway.

> 	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.

Hm, now is not really a good time.  I'm still trying to get Xen 
basically working, and the percpu PDA stuff isn't really necessary for 
that.  The PDA stuff was enough of a problem in itself...

Also, the PDA patches are in -mm, so that's probably a better base for 
your patches.

    J

  parent reply	other threads:[~2006-09-19  8:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=450FA6FB.9020100@goop.org \
    --to=jeremy@goop.org \
    --cc=ak@muc.de \
    --cc=akpm@osdl.org \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    --cc=virtualization@lists.osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.