Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7479542pxb; Thu, 18 Feb 2021 11:06:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEnfkiKv91l1s6sUBrmS5fxh7DqJwbKnCzsgY4/xDjf0H6j6xq9nLdNc37H4deZOXX+4rV X-Received: by 2002:a17:906:1a56:: with SMTP id j22mr5484494ejf.80.1613675217936; Thu, 18 Feb 2021 11:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613675217; cv=none; d=google.com; s=arc-20160816; b=z8ymLVfM/t2XwqJke2NIrcq1mlSp64UkKVXP4tGgTfu+Nng4B9thqsCRf7gZVq5q8E 8mnXp2w445u9wCGXYxKJqAWzYaWVjxia2kxT2wl6wpCbsLb6vG8BXad58xE0CPThTixG yM3TBWAwgx309znqyTTeg37rDwzOfig9rV4L9tgUY4H8sN7mP69n8aWj8UMFN+sqcCZY QQ3PF7j4oUuGcQRPJYjewcNq+mfbE9KtId7gsKHOvslqB8mkSuA7I6/ORiKD8+/XwIlG I8djdPQmLAkdyyp3ny2loStxuvur6wIHIHdH2Qy0zTyCodpgx9uL/JVGPYdVRz9ClizR 9y0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:user-agent:message-id :dkim-signature; bh=hWg0XP7fO2g0yLNO7yCKhtPhNCNNXSECX/6x8OQx93Q=; b=mN2T6oEwh4tn1wn9yPEM4gf89MMX+aX4hs+uxrbGOsu1Ddf3dEDLm3GanySkm1hNpJ gvBvPnLBs4Cdb5HuionKG7ft3VtZm5Va9d5/Wc4qSzTjPhYxfiolMNws6ko+VQsfwEdj lUYeghqJGG6nEXzMR0PZ/kXvoP7/jWfYQvRkS2/xH/UaHP3kozMqcM4tvTpKsFrilbC5 QiczAO+89gUVLqgBmyAzB+BMN42rK3bvafyNfWMYCaPMYDrFiGsatZl5H6AfxDgisF4g gYS65SxiAR9q8khtBITGQCAgXVJGcoEtCk/ATNnQgME+NbgDTuVEz7Ew3TzGovQoB9ue yuww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=XxXRwoeK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s27si3998166ejd.548.2021.02.18.11.06.23; Thu, 18 Feb 2021 11:06:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=XxXRwoeK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232154AbhBRTDV (ORCPT + 99 others); Thu, 18 Feb 2021 14:03:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234301AbhBRR1B (ORCPT ); Thu, 18 Feb 2021 12:27:01 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99F06C0617A7 for ; Thu, 18 Feb 2021 09:25:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=hWg0XP7fO2g0yLNO7yCKhtPhNCNNXSECX/6x8OQx93Q=; b=XxXRwoeKbHjo9ZJYoZ5jW7mSpH iFx724UzmFTNlmTp6Akh7lRCrYBBs2cfEj6hzBHCVOdtPgEFkwSEO8B8uOfy+rVFupEtMUjhMbHzo Z44Lky7nSzOAlOOcPdNGFZJ37JMBHIHoEMQWjbNiXqHVm3BbA4tyG+cihXOZvzbvJnYlxR/ePm3Py K1dnbzx3ZrDPoI4LOXWWm9q+53YtSFAPu17oRfDueA9pu1iK7A038r4YYH5GVPn/PRX+OQPNTvT9M 4+Q+493tJ6WcR3OjzBJQhIt5fNhl7RpS6TEXx3D/kxywouoR1uYWTGbQbxqG1NSk7MIOC6x6iidg6 mOJ+BLJw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lCn3V-0007qr-6K; Thu, 18 Feb 2021 17:25:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B937A305C10; Thu, 18 Feb 2021 18:25:29 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 915CB20268332; Thu, 18 Feb 2021 18:25:29 +0100 (CET) Message-ID: <20210218165938.213678824@infradead.org> User-Agent: quilt/0.66 Date: Thu, 18 Feb 2021 17:59:38 +0100 From: Peter Zijlstra To: x86@kernel.org, tony.luck@intel.com, pjt@google.com Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, r.marek@assembler.cz, jpoimboe@redhat.com, jikos@kernel.org Subject: [RFC][PATCH 0/2] x86/retpoline: Retpoline on a diet Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! The first patch rearranges the implementation and consolidates unused bytes. The second patch uses INT3 over LFENCE to shrink the retpoline to 15 bytes, by which 4 can live in a cacheline. Patches have been boot tested on my IVB.