From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754684AbbCEIYT (ORCPT ); Thu, 5 Mar 2015 03:24:19 -0500 Received: from mail.skyhub.de ([78.46.96.112]:40990 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751503AbbCEIYS (ORCPT ); Thu, 5 Mar 2015 03:24:18 -0500 Date: Thu, 5 Mar 2015 09:23:04 +0100 From: Borislav Petkov To: Ingo Molnar Cc: X86 ML , Andy Lutomirski , LKML , Linus Torvalds Subject: Re: [PATCH v2 07/15] x86/lib/copy_user_64.S: Convert to ALTERNATIVE_2 Message-ID: <20150305082304.GA3915@pd.tnic> References: <1424776497-3180-1-git-send-email-bp@alien8.de> <1424776497-3180-8-git-send-email-bp@alien8.de> <20150304062552.GA16111@gmail.com> <20150304071324.GA22028@gmail.com> <20150304090626.GC3233@pd.tnic> <20150305003417.GC20449@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150305003417.GC20449@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 05, 2015 at 01:34:17AM +0100, Ingo Molnar wrote: > So I'd not patch in the large _orig variant, it's legacy mostly - but > the two fast variants? Yes, so the optimal thing would be to have the kernel generate the CALL variant when building. Those are going to be the default opcodes in vmlinux coming out of build. Then, when booted on ERMS machines, we'll patch in CALL and as a last resort fallback, the CALL to the legacy variant on really old boxes. /me puts it on the TODO. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --