|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/2] x86: Replace this_cpu_sp0 with current_top_of_stack and fix it on x86_32
On 03/06/2015 08:50 PM, Andy Lutomirski wrote: ... Andy,We need a similar change for Xen, otherwise 32-bit PV guests are not happy. Is the patch above final (and then should I submit a separate patch) or are you still working on it (and if so, please add the change below)? -boris diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 1c5e760..561d6f5 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c@@ -444,6 +444,8 @@ static int xen_cpu_up(unsigned int cpu, struct task_struct *idle)
per_cpu(current_task, cpu) = idle;
#ifdef CONFIG_X86_32
irq_ctx_init(cpu);
+ per_cpu(cpu_current_top_of_stack, cpu) =
+ (unsigned long)task_stack_page(idle) + THREAD_SIZE;
#else
clear_tsk_thread_flag(idle, TIF_FORK);
#endif
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |