Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751442AbVKOQEf (ORCPT ); Tue, 15 Nov 2005 11:04:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751443AbVKOQEf (ORCPT ); Tue, 15 Nov 2005 11:04:35 -0500 Received: from mailout1.vmware.com ([65.113.40.130]:9988 "EHLO mailout1.vmware.com") by vger.kernel.org with ESMTP id S1751442AbVKOQEe (ORCPT ); Tue, 15 Nov 2005 11:04:34 -0500 Message-ID: <437A0710.4020107@vmware.com> Date: Tue, 15 Nov 2005 08:04:32 -0800 From: Zachary Amsden User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gerd Knorr 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> In-Reply-To: <437A0649.7010702@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Nov 2005 16:04:33.0733 (UTC) FILETIME=[44EDD750:01C5E9FE] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 22 Gerd Knorr wrote: >> Yep, extending alternatives is probably better than duplicating the >> code. Maybe having some alternative_smp() macro which places both >> code versions into the .altinstr_replacement table? If that sounds >> ok I'll try to come up with a experimental patch. > > > i.e. something like this (as basic idea, patch is far away from doing > anything useful ...)? 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. Zach - 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/