From: Tristan Gingold Subject: Re: PATCH: split smpboot.c and create cpuhotplug.c Date: Tue, 23 May 2006 09:29:33 +0200 Message-ID: <200605230929.33179.Tristan.Gingold@bull.net> References: <200605220957.20579.Tristan.Gingold@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Le Lundi 22 Mai 2006 17:44, Keir Fraser a =E9crit : > On 22 May 2006, at 08:57, Tristan Gingold wrote: > > this patch creates a new file: cpuhotplug.c. The content is the xenbus > > handler part of smpboot.c. The purpose is to be able to share this > > part with > > other architectures. > > > > Tested by compiling on i386. > > This raises the obvious question: why don't you use the rest of our > smpboot.c to implement SMP bringup? It's all generic except the bit > that sets up VCPU initial context. I can see three reasons: * Only a 10 lines change (IPI handling) was required in the linux kernel to= =20 run SMP on Xen. All the other changes were in Xen. * xen/core/smpboot.c is not a drop in replacement for=20 arch/ia64/kernel/smpboot.c Surgery will be required. * If we used xen/core/smpboot.c, we'd lose transparent virtualization. To= =20 re-enable it we had to do surgery again. Tristan.