LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Sébastien Dugué" <sebastien.dugue@bull.net>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@elte.hu>, Andi Kleen <andi@firstfloor.org>,
	lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/4] i386 GDT cleanups: Use per-cpu GDT immediately upon boot
Date: Thu, 22 Mar 2007 09:10:31 +0100	[thread overview]
Message-ID: <20070322091031.33a753fe@frecb000686.frec.bull.fr> (raw)
In-Reply-To: <1174521510.2713.61.camel@localhost.localdomain>


  Hi Rusty,

On Thu, 22 Mar 2007 10:58:30 +1100 Rusty Russell <rusty@rustcorp.com.au> wrote:

> On Wed, 2007-03-21 at 10:51 -0600, Eric W. Biederman wrote:
> > Rusty Russell <rusty@rustcorp.com.au> writes:
> > 
> > > On Wed, 2007-03-21 at 03:31 -0600, Eric W. Biederman wrote:
> > >> Rusty Russell <rusty@rustcorp.com.au> writes:
> > >> > -/*
> > >> > - * The boot_gdt_table must mirror the equivalent in setup.S and is
> > >> > - * used only for booting.
> > >> > - */
> > >> 
> > >> It looks like you are killing a useful comment here for no good reason.
> > >
> > > Hi Eric,
> > >
> > > 	I think one has to look harder, then.  There is no "equivalent in
> > > setup.S": there is no setup.S, and it's certainly not clear what GDT
> > > this "must mirror": it doesn't mirror any GDT at the moment.
> > 
> > see the gdt in:
> > arch/i386/boot/setup.S
> 
> Erk, what a dumb mistake.  Apologies for my snarky comment above 8(
> 
> > If anything the comment should read these values are fixed by the boot
> > protocol and we can't change them.
> 
> Since lguest doesn't use setup.S, it's outside my experience.  I'll just
> leave the comment, and try to pretend this never happened 8)
> 
> Thanks muchly,
> Rusty.
> ==
> Now we are no longer dynamically allocating the GDT, we don't need the
> "cpu_gdt_table" at all: we can switch straight from "boot_gdt_table"
> to the per-cpu GDT.  This means initializing the cpu_gdt array in C.


  Why not take on the opportunity to rename boot_gt_table to boot_gtd,
to avoid the duplicate T(able)?

  Sébastien.

  reply	other threads:[~2007-03-22  8:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21  6:10 [PATCH] Allow per-cpu variables to be page-aligned Rusty Russell
2007-03-21  6:30 ` [PATCH 0/4] i386 GDT cleanups Rusty Russell
2007-03-21  6:32   ` [PATCH 1/4] i386 GDT cleanups: Use per-cpu variables for GDT, PDA Rusty Russell
2007-03-21  6:35     ` [PATCH 2/4] i386 GDT cleanups: Use per-cpu GDT immediately upon boot Rusty Russell
2007-03-21  6:36       ` [PATCH 3/4] i386 GDT cleanups: clean up cpu_init() Rusty Russell
2007-03-21  6:53         ` [PATCH 4/4] i386 GDT cleanups: cleanup GDT Access Rusty Russell
2007-03-21  9:31       ` [PATCH 2/4] i386 GDT cleanups: Use per-cpu GDT immediately upon boot Eric W. Biederman
2007-03-21 11:55         ` Rusty Russell
2007-03-21 16:51           ` Eric W. Biederman
2007-03-21 23:58             ` Rusty Russell
2007-03-22  8:10               ` Sébastien Dugué [this message]
2007-03-22  9:24                 ` Rusty Russell
2007-03-22 15:59                   ` [PATCH] i386 GDT cleanups: Rename boot_gdt_table to boot_gdt Sébastien Dugué
2007-03-23  7:19                     ` Rusty Russell
2007-03-23 14:15                     ` Andi Kleen
2007-03-21  9:21 ` [PATCH] Allow per-cpu variables to be page-aligned Eric W. Biederman
2007-03-21 11:44   ` Rusty Russell
2007-03-21 16:49     ` Eric W. Biederman
2007-03-22  0:09       ` Rusty Russell

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=20070322091031.33a753fe@frecb000686.frec.bull.fr \
    --to=sebastien.dugue@bull.net \
    --cc=akpm@linux-foundation.org \
    --cc=andi@firstfloor.org \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rusty@rustcorp.com.au \
    --subject='Re: [PATCH 2/4] i386 GDT cleanups: Use per-cpu GDT immediately upon boot' \
    /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

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