Cc: Eric W. Biederman <ebiederm@...>, H. Peter Anvin <hpa@...>, Christoph Lameter <cl@...>, Linux Kernel Mailing List <linux-kernel@...>, Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>, Jack Steiner <steiner@...>
If it's just a static initialization, then it should be fine. But some
equivalent of your head_64.S changes are needed to actually set things up?
No, it doesn't. It bypasses all that startup code. Aside from the few
instructions in xen-head.S, xen_start_kernel() is the first thing to get
run.
But when bringing up a secondary cpu, where does the new percpu memory
actually get allocated?
Yes, it needn't be in the asm code. I'll work out what to do. Looks
like I just need to do an appropriate wrmsr(MSR_GS_BASE, ).
J
--