Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7319746imm; Thu, 28 Jun 2018 01:32:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI8W5S41/b5Rfr9XOl0w7pPGlAjgrFB2MKcrUUkGDvX8C+QVXmwKl+QDT9ncxJr3NGkWy6X X-Received: by 2002:a17:902:42c3:: with SMTP id h61-v6mr9516943pld.319.1530174756145; Thu, 28 Jun 2018 01:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530174756; cv=none; d=google.com; s=arc-20160816; b=RNajpT9HM1SFo+fJcMB/QF0YZuaNp4vKuTraRhm7ZWSRRFiFBK5nMYRjdVV3KcmBiG RjxPbspQHL1kPtSS8cJ4yxBIrZ0sbExmrhOJytKPdv/W6nd+AchWpp0om8KypnYFg8xK LyG4Rxebk4ovJULEB9vL25alSwgfhJWNfBhUiv1iRIyZwrqGEG4xZXgcNL9t6HLNnQ51 64uqpB5s5ElDKMJ/OomAMxxeglGQjGtx7uBiX/Xy+WYqiIvInUpz/izec09ohEKBWQNm XJTXgXkhcj/aJaCffolML3gNSP8umJxvDsBEob9b9HXvf+GX0JwfkAjfPQhVPBEzjJf6 jBlw== 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:arc-authentication-results; bh=8wshj8M6vE3K5HF83ZDUFF8rUGIgQu/KFjEighiAUnc=; b=TdnnweyGpdj33vgEJ24BgTsd/f/t7cUQ9f6h1HI/I8a0jaQ3EVuy8EQmOgTCh2XYa8 ihsJuFjpcAqcLObdVj2N+/Q5MO5cjhQmC0cr06cOSfnfP7rFjfWTH+t683twy8XT0V89 2YMnYfXy/Hzsj6MCFtCcQeRDV3zleHC140CqPNL+Kv7VPP30JqnGm4j5aEfWDuN8suc/ gYF4IfpbFl8kTk9TAJuKxoWlAPas/LJtmDyMT90CcJtx5B/ZIDYDrMDfuTNatHNMtzVi qvxL8+L7YFpCIw0fhIWDowV6XDF6yz9zLjSruUfIOLWIg4iL0TB9Ijzh5UTimKpFtcIT Ps9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dkpD5Tvq; 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 c187-v6si6134158pfc.74.2018.06.28.01.32.18; Thu, 28 Jun 2018 01:32:36 -0700 (PDT) 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=bombadil.20170209 header.b=dkpD5Tvq; 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 S934928AbeF1IbU (ORCPT + 99 others); Thu, 28 Jun 2018 04:31:20 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41512 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933589AbeF1IbS (ORCPT ); Thu, 28 Jun 2018 04:31:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=8wshj8M6vE3K5HF83ZDUFF8rUGIgQu/KFjEighiAUnc=; b=dkpD5TvqFSFAqMMS3QAvkny1A JkFAwUG8Vr4yNh2HK6o2e5mSd9HIWT0uPXwDYW2YzfTrqinTi+F/dJck85431YoUJEsnUTcOGVIVN 39N2hphF3/X2pqzmVQSt45n8aMhJb3wcZnU6vaKJ45oRuSC0pgLZUDd5DGmILEJ5NUnJi0p8Gs/zT B0QLo2ZucwAxuojPKAYZNmHnodAnwPF3jUzv1luquUwDXzCHeVz2OxDjz3H2Cui7RbQMlcge8jkb9 CDAMLxPlPSxcpsySJlRgedK/TnW7P7Wovl7PM5SFXjQVE7NzwSShl7hE8H1fKwlVbj7h2CrRR28sI 0XBM8MqLw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYSKb-0006BQ-IW; Thu, 28 Jun 2018 08:31:09 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1EBBA20297645; Thu, 28 Jun 2018 10:31:07 +0200 (CEST) Date: Thu, 28 Jun 2018 10:31:07 +0200 From: Peter Zijlstra To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Arnd Bergmann , Steven Rostedt , namit@vmware.com Subject: Re: [PATCH 5/5] x86/kernel: jump_table: use relative references Message-ID: <20180628083107.GY2494@hirez.programming.kicks-ass.net> References: <20180627160604.8154-1-ard.biesheuvel@linaro.org> <20180627160604.8154-6-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180627160604.8154-6-ard.biesheuvel@linaro.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 27, 2018 at 06:06:04PM +0200, Ard Biesheuvel wrote: > Similar to the arm64 case, 64-bit x86 can benefit from using 32-bit > relative references rather than 64-bit absolute ones when emitting > struct jump_entry instances. Not only does this reduce the memory > footprint of the entries themselves by 50%, it also removes the need > for carrying relocation metadata on relocatable builds (i.e., for KASLR) > which saves a fair chunk of .init space as well (although the savings > are not as dramatic as on arm64) This will conflict with: https://lkml.kernel.org/r/20180622172212.199633-10-namit@vmware.com