Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbVKOQQl (ORCPT ); Tue, 15 Nov 2005 11:16:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751444AbVKOQQl (ORCPT ); Tue, 15 Nov 2005 11:16:41 -0500 Received: from ns.suse.de ([195.135.220.2]:46506 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1751450AbVKOQQk (ORCPT ); Tue, 15 Nov 2005 11:16:40 -0500 Message-ID: <437A09E5.6080306@suse.de> Date: Tue, 15 Nov 2005 17:16:37 +0100 From: Gerd Knorr User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zachary Amsden Cc: Linus Torvalds , Dave Jones , Pavel Machek , Andrew Morton , Linux Kernel Mailing List , "H. Peter Anvin" , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar Subject: Re: [PATCH 1/10] Cr4 is valid on some 486s References: <200511100032.jAA0WgUq027712@zach-dev.vmware.com> <20051111103605.GC27805@elf.ucw.cz> <4374F2D5.7010106@vmware.com> <4374FB89.6000304@vmware.com> <20051113074241.GA29796@redhat.com> <4378A7F3.9070704@suse.de> <4379ECC1.20005@suse.de> <437A0649.7010702@suse.de> <437A0710.4020107@vmware.com> In-Reply-To: <437A0710.4020107@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 831 Lines: 22 Zachary Amsden wrote: > You still need to preserve the originals so that you can patch in both > directions. In the dynamic scenario, you need a multi-way set of > alternatives, with the most conservative of those compiled in inline. Sure, alternatives_smp() puts both versions into the .altinstr_replacement section because of that ;) The idea is to have SMP compiled in and let the normal apply_alternatives() handle the SMP->UP patching case using the new feature bit. apply_alternatives_smp() handles UP->SMP patching when you plug in a new virtual CPU. cheers, Gerd - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/