From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68356C43387 for ; Fri, 11 Jan 2019 21:32:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E5A42084C for ; Fri, 11 Jan 2019 21:32:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726275AbfAKVcM (ORCPT ); Fri, 11 Jan 2019 16:32:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44100 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfAKVcM (ORCPT ); Fri, 11 Jan 2019 16:32:12 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 578487FD41; Fri, 11 Jan 2019 21:32:11 +0000 (UTC) Received: from treble (ovpn-122-231.rdu2.redhat.com [10.10.122.231]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 52A3881644; Fri, 11 Jan 2019 21:32:04 +0000 (UTC) Date: Fri, 11 Jan 2019 15:32:02 -0600 From: Josh Poimboeuf To: Linus Torvalds Cc: Andy Lutomirski , Nadav Amit , Peter Zijlstra , the arch/x86 maintainers , Linux List Kernel Mailing , Ard Biesheuvel , Steven Rostedt , Ingo Molnar , Thomas Gleixner , Masami Hiramatsu , Jason Baron , Jiri Kosina , David Laight , Borislav Petkov , Julia Cartwright , Jessica Yu , "H. Peter Anvin" , Rasmus Villemoes , Edward Cree , Daniel Bristot de Oliveira Subject: Re: [PATCH v3 0/6] Static calls Message-ID: <20190111213202.v4lem2euji5cwuch@treble> References: <20190111151525.tf7lhuycyyvjjxez@treble> <20190111200420.qtyffayxceysoarf@treble> <20190111203135.5clurevf34bkiy3o@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 11 Jan 2019 21:32:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 01:10:47PM -0800, Linus Torvalds wrote: > On Fri, Jan 11, 2019 at 1:05 PM Andy Lutomirski wrote: > > > > > Yeah, my suggestion doesn't allow for batching, since it would > > > basically generate one trampoline for every rewritten instruction. > > > > Sure it does. Just make 1000 trampolines and patch 1000 sites in a > > batch :) As long as the number of trampolines is smallish (e.g. fits > > in a page), then we should be in good shape. > > Yeah, I guess that's true. > > But let's not worry about it. I don't think we do batching for any > alternative instruction rewriting right now, do we? Not at the moment, but Daniel has been working on some patches to do so: https://lkml.kernel.org/r/cover.1545228276.git.bristot@redhat.com -- Josh