Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2853384imu; Thu, 29 Nov 2018 11:15:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/U6VcTF24aHieDrvJLt7yh3NDnGfV4D/PPd51vtCEQ6EZMeFqkWDGo405bRDH2htbEQfOEo X-Received: by 2002:a63:be4d:: with SMTP id g13mr2294767pgo.378.1543518918355; Thu, 29 Nov 2018 11:15:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543518918; cv=none; d=google.com; s=arc-20160816; b=ev5ZRATyGcNSsbhh6t3AGmi+c2cmAkUUaY1Jz6KBCj5c/dYxl9DeCbZeIc3EsF0/zM qsToDAcsj40OcjbzNPtkgsm+BX6x9ZCVbsZRBQr3j9nOwFkMdcvEbx1moIX98+rxFOVT 21fXpFV776V1K5pYxB5Nqe8g0NwBgDbmEiAWH1eTuLtE/JrBuuA2/p8IKV7lPF6Y8jPC j7dPNNaN9tN+iSsyt4U02wKIG5I3eBI1E4gqNJ1xzlY0ZU08/N1PJAS29CilPU2G0iHI kr+wc9vT6T4OAAlEJtJdFUwW/vhVFqh2+FP6fPmBD9oLS7bITVpM9A2M6gjkChBl2YCC n6SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=l/bNQ/Pc62g0EcD7cXiKa8ldbAv3wQfSSnIXm2IFY8c=; b=vc0ScAT4FULU74zXUbELZSWV5bjRYFNmJVv1A6HlKn6L2t79Mw/3xeN/tXI25Tz9uH gTQ9t3czvbQqXVK3YCrNFdg5G8+/w963X1Zyve359W/f5CGqGbCoPde/7/4rWbHrVOF9 dntvbSuGVqFlUKtUGyJBbL5D9uwLy0fZRrqz2he23K0b3Z8UsVQbsjQFg5bKHYnRAkSu OLehy6DFnk+TYOjlFmv/SgeodJQjMhcQYn2dB+KBWC4yKLipQI3Vh3P0hRKjfM1qeT2S zIQhKitiG8WxRpKNtMagHbLIMpJXN9XkUilKDsWISCcIpRzFEqFgGvl6caJtJptVrwj9 sP/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=a0nGlItL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si2642479pgh.299.2018.11.29.11.15.03; Thu, 29 Nov 2018 11:15:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=a0nGlItL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726494AbeK3GSi (ORCPT + 99 others); Fri, 30 Nov 2018 01:18:38 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42189 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbeK3GSi (ORCPT ); Fri, 30 Nov 2018 01:18:38 -0500 Received: by mail-lf1-f66.google.com with SMTP id l10so2289731lfh.9 for ; Thu, 29 Nov 2018 11:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l/bNQ/Pc62g0EcD7cXiKa8ldbAv3wQfSSnIXm2IFY8c=; b=a0nGlItLf2VKnsAMa6aV2E2lbBHIExa/sSj99eIgQ6x++vx2EbUufGLFGv8okwNz71 ffZGPE8WVYZrb5cQPCA/h1rYedX4vxhlVjsiiR8/eSxOJ3b6+fEX8jkfd28TqJYB/9k1 Iw7NSzk6XHIXS+1fkr/nNHCp3+qe7gyxMHtws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l/bNQ/Pc62g0EcD7cXiKa8ldbAv3wQfSSnIXm2IFY8c=; b=J7IoqYrhMni+2CTJEg6UCV3QvBf2BKP0VAmHieoQAV5pfxgpwcTyTPe5wov3s5UtVP jbFE8Dud4fXDamTsD+GlI+xo/OUXKP1Ot7dS80+N2nWw/WzK60BP+nMjZolMr50sn6JX X4x+bJyp/SJeA5sRRib+6mhEOVEGE+O9o52cyFLuY1lO5lt/QtJtqGOP9a+uIFj4l5AS ObEjxBgEAPqLjR0X4FofCuZLJoUgQm/6LUodz2zNCqxctAUlOv//doII5N/t2Sh0yVb0 qy5Yg7jCY/2WWFL/znOkUPxsmgRK2mv1o/bipgQJyPwYzoaTnQTHRt9+te6qxafuY52r VABA== X-Gm-Message-State: AA+aEWapFD34RcoP911DbahjdczsXEeC8zWsBn9GhINsUsbnZQKUIK4x i0WMzwTirpsg4JQfg5DlcHEY0dGD5eg= X-Received: by 2002:a19:3fcf:: with SMTP id m198mr1771489lfa.106.1543518729481; Thu, 29 Nov 2018 11:12:09 -0800 (PST) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id v11-v6sm406945ljc.57.2018.11.29.11.12.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 11:12:08 -0800 (PST) Received: by mail-lf1-f48.google.com with SMTP id p6so2310516lfc.1 for ; Thu, 29 Nov 2018 11:12:07 -0800 (PST) X-Received: by 2002:a19:7013:: with SMTP id h19mr1937463lfc.147.1543518727041; Thu, 29 Nov 2018 11:12:07 -0800 (PST) MIME-Version: 1.0 References: <20181126160217.GR2113@hirez.programming.kicks-ass.net> <20181126200801.GW2113@hirez.programming.kicks-ass.net> <20181126212628.4apztfazichxnt7r@treble> <20181127084330.GX2113@hirez.programming.kicks-ass.net> <20181129094210.GC2131@hirez.programming.kicks-ass.net> <20181129143853.GO2131@hirez.programming.kicks-ass.net> <20181129163342.tp5wlfcyiazwwyoh@treble> <0A629D30-ADCF-4159-9443-E5727146F65F@amacapital.net> <20181129121307.12393c57@gandalf.local.home> <20181129124404.2fe55dd0@gandalf.local.home> <20181129125857.75c55b96@gandalf.local.home> <20181129134725.6d86ade6@gandalf.local.home> In-Reply-To: From: Linus Torvalds Date: Thu, 29 Nov 2018 11:11:50 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64 To: Steven Rostedt Cc: Andy Lutomirski , Josh Poimboeuf , Peter Zijlstra , Andrew Lutomirski , "the arch/x86 maintainers" , Linux List Kernel Mailing , Ard Biesheuvel , Ingo Molnar , Thomas Gleixner , mhiramat@kernel.org, jbaron@akamai.com, Jiri Kosina , David.Laight@aculab.com, bp@alien8.de, julia@ni.com, jeyu@kernel.org, Peter Anvin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 11:08 AM Linus Torvalds wrote: > > What you can do then is basically add a single-byte prefix to the > "call" instruction that does nothing (say, cs override), and then > replace *that* with a 'int3' instruction. Hmm. the segment prefixes are documented as being "reserved" for branch instructions. I *think* that means just conditional branches (Intel at one point used the prefixes for static prediction information), not "call", but who knows.. It might be better to use an empty REX prefix on x86-64 or something like that. Linus