From: Tejun Heo Subject: Re: [PATCH 1/3] xen: setup percpu data pointers Date: Thu, 05 Feb 2009 15:29:12 +0900 Message-ID: <498A8738.9050200@gmail.com> References: <49876BD3.5070804@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49876BD3.5070804@goop.org> Sender: linux-kernel-owner@vger.kernel.org To: Jeremy Fitzhardinge Cc: Ingo Molnar , the arch/x86 maintainers , Linux Kernel Mailing List , Xen-devel List-Id: xen-devel@lists.xenproject.org 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 > --- > 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