Re: [PATCH 1/3] xen: setup percpu data pointers

From: Tejun Heo
Date: Thu Feb 05 2009 - 01:29:22 EST


Jeremy Fitzhardinge wrote:
> We need to access percpu data fairly early, so set up the percpu
> registers as soon as possible. We only need to load the appropriate
> segment register. We already have a GDT, but its hard to change it
> early because we need to manipulate the pagetable to do so, and that
> hasn't been set up yet.
>
> Also, set the kernel stack when bringing up secondary CPUs. If we
> don't they all end up sharing the same stack...
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
> ---
> arch/x86/xen/enlighten.c | 16 ++++++++++++++++
> arch/x86/xen/smp.c | 7 ++++++-
> arch/x86/xen/xen-ops.h | 2 ++
> 3 files changed, 24 insertions(+), 1 deletion(-)

Applied 1-3 to #tj-percpu with trivial modification on #2 (will reply
to the message).

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/