Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5084850imu; Tue, 8 Jan 2019 11:12:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN4P9FS9T1uuyVAr2n2mnTheH5VkOd/zlVP07Mq4MCOApzkNWM/RbBkRmC9dInyTN9VSATvR X-Received: by 2002:a62:178f:: with SMTP id 137mr2904961pfx.226.1546974722251; Tue, 08 Jan 2019 11:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546974722; cv=none; d=google.com; s=arc-20160816; b=Yw0WoVs77nd0uDksuuJLb9tRb+LcfMsXlUZ+hB+ULfBeBUjDz3gQeWfvHFUIOeALvu FC7zKGKeAVhcXXiIBVvzUnjN7Eve1Y8tkcD7Yq2ncTjgT8wW/0H3DofPAoiDTYHvUP0L xn6HMKuAnYBzDd3y4sVHx/Br04vWa54OVNt2Xvct4L7pr4aoC0J/Q78sceBzWsm2NIy0 NAax0RuG10+4i9JTteWEnDUAAWbYOVT+HrhTXbsB/81knRpo10Qg7fAB0XxpRSsnkb9L 6nfSdCV1ez2Rw39vJ+YliQ5+FJlezzkfMDMfu+9XbP3gDu83l/r6wtYzmZgw7IYiRQ0x do7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sIpAEAGlSMv194QjCj2KclvPSTcPSpdvrQNngqRckqQ=; b=mxzrpp2IAYn8DpFyHifhx+U5vChaBwauvdG4WKkNG1QrP9JJtdNczMy11RL6LUs7ij 9x8JP+2zXp2bUDoKKPG+JjkiFTbSk2QEOR/f49xrMmF/d5w6y4JlPc04jBnKgYvpOv5N 4YwZiCb21ra3ZdlwK1vnwnW/s0c4hMN2lvfbe+miHR9k0+JxEwmTy4CVx/fn29l4ul0l RLjhEvSM2paTkjHb5Z78NLXnLCUcFfbvRowJx5zUfQ0dXEvEqxvby1iRQx/7LpM74YPC jJkDwLHNlu6LEW4tli1k8sOF82j/PnUyeCPWK5JeUjXg41KYkfdJNXD2wCi86lak/Dlf CjoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=NuhTIrml; 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 w6si53109437pfb.191.2019.01.08.11.11.45; Tue, 08 Jan 2019 11:12:02 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=NuhTIrml; 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 S1728469AbfAHS6O (ORCPT + 99 others); Tue, 8 Jan 2019 13:58:14 -0500 Received: from merlin.infradead.org ([205.233.59.134]:55486 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728106AbfAHS6O (ORCPT ); Tue, 8 Jan 2019 13:58:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sIpAEAGlSMv194QjCj2KclvPSTcPSpdvrQNngqRckqQ=; b=NuhTIrml0b8OtLtssq8Jlpxyc qx/Gf2ta0yggMSmEDqYZHeDkiAlhSTJYuHAqJujFd3Neknpuh0Zq8ztoNsrTz5jLZE0mlFekxDV4j UwcjAhRXAQqzdsZkyzLpmv2eri3lEK6koZbH5lbnqb3gyrDN87C8QbSbc2kjoWe6XjSsRPB/LDmcr PpU3aeJGT7253eDpDqr7J3c/NHhv5J+NC+IKYVkCNUcCp2yeDVq/euq73X+iQmsLhNrvxgu3USMFW /rW3ZKu/IBAwvkoljWxHhMXMCzyQbyFQ2kam9gl+3Cdx1F/7Y5J8hP/qSzYc4pfrkSqxYk8nl9yuR QFf5LSu6Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggwZV-0003FN-IW; Tue, 08 Jan 2019 18:57:53 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 39E6020280450; Tue, 8 Jan 2019 19:57:51 +0100 (CET) Date: Tue, 8 Jan 2019 19:57:51 +0100 From: Peter Zijlstra To: Andi Kleen Cc: Adrian Hunter , Nadav Amit , Ingo Molnar , Andy Lutomirski , Josh Poimboeuf , Edward Cree , "H . Peter Anvin" , Thomas Gleixner , LKML , Nadav Amit , X86 ML , Paolo Abeni , Borislav Petkov , David Woodhouse , Alexander Shishkin , songliubraving@fb.com Subject: Re: [RFC v2 0/6] x86: dynamic indirect branch promotion Message-ID: <20190108185751.GB1900@hirez.programming.kicks-ass.net> References: <20181231072112.21051-1-namit@vmware.com> <87zhshe66w.fsf@linux.intel.com> <20190107163227.GH14122@hirez.programming.kicks-ass.net> <20190108092559.GA6808@hirez.programming.kicks-ass.net> <306d38fb-7ce6-a3ec-a351-6c117559ebaa@intel.com> <20190108101058.GB6808@hirez.programming.kicks-ass.net> <20190108172721.GN6118@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190108172721.GN6118@tassilo.jf.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 08, 2019 at 09:27:21AM -0800, Andi Kleen wrote: > It doesn't work when the code is modified in place, like the > patch in the $SUBJECT. For in-place modification a-la jump_label / static_call etc. we can 'trivially' log the new instruction and the decoder can do matching in-place kcore adjustments.