Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7365752imm; Thu, 28 Jun 2018 02:30:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKtn9cNovfvuRmMrM9nI4dVy1ZbxJRqqCsjKpaMD1LWeTLgENJQ+HUvlvIT7vb0wr2Dw2UB X-Received: by 2002:a17:902:9a01:: with SMTP id v1-v6mr9937274plp.20.1530178228668; Thu, 28 Jun 2018 02:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530178228; cv=none; d=google.com; s=arc-20160816; b=TSOvIIv1L766icHx0YuCen1ukFVh6wM5JMAOjD0tc359b9G4hgNpUc6AmWirRgqpx0 r3q6G1jQ3f0NdNr0I1uO9Y+YhZmBojkSuOcfiy+PBmJ1PSYey8LvhgQQeBYE2EBIv8UA gDqChLE+kmoErhVT2wJNTV4BkBuKWXQgtFZnj8YmrW+FNwYlyCaXAbou9cSjvCUfOfPZ J4n7FUTuJ/dKRwRno3itQmjQ7gGOqbbxAemSsAk6M5ByuOtOzmPAnhTyJs9lpFTQJY5W qkXQipG2YRN9FpLrt8KDOIAIt8+6DIn+daqyDz1BOC0hf2o48iWXLnU+bLrvRPOAD/xk eiUw== 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=hYYDbc+R/nlM7I17YKyvqtFKsVgFSEudSqAqJlnY2uU=; b=gzvFz3xe922KEzSIYtipI0o86Ag6tR4fKjG3Pw9aMVFhPHfrwnCwtP9fWNwfOAkk07 FHTuVwji61cCj0L3ZfFWKizSyzGa+qQcDbmVy8tF82M1GKpNyU817mJIpInkbCUT9c9P ACUZbMQ1xE2KZEN0w27IFSwPLChnvBIBON3C1YUZuQJFhbmUzc2AjV9lcVlF1B8vRETs TsCZOeV5xm3h7Aruj3gXzaFtUmbixcI+yC5uaGtcv+KShiNXmcwKQUpjdSipb4T4BAIG BcNeyeQV+3C7gbzB7sWXp19VBKSxQAsD+umlQlctGbkj8Sh6yJypfEjRKZRVELfbqWpI UCFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qJeCeDP5; 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 s184-v6si5447382pgs.492.2018.06.28.02.30.11; Thu, 28 Jun 2018 02:30:28 -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=qJeCeDP5; 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 S935091AbeF1J2a (ORCPT + 99 others); Thu, 28 Jun 2018 05:28:30 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60668 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933194AbeF1J23 (ORCPT ); Thu, 28 Jun 2018 05:28:29 -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=hYYDbc+R/nlM7I17YKyvqtFKsVgFSEudSqAqJlnY2uU=; b=qJeCeDP5a+y7p4GEUxiAXIW1Y z6Dda/XYV+Hp4qp5rEGshI9MPzZ2eFigfx0OBM22dFIYBH3o6GKzF/075nHPYNG3eIrLuVVJCCnJ9 zs0vsNlSIf0j42etYL2dZM4OsreKJ3I4MjS1jb9tv0EvBRpyGMogSR+q4WUqm2oGCfjGmxghLWq2T f0Up4y/eaLHnkNqGDF7h6rQQkBPkOGCDsVcbqvUG9d+C6Gxx6+bDCRtkREE86G6mcZlVThdPPr6gh NayuQ+12xvy2f//xP26QG+cEmiKjOT79+GnUsh7cWd8N0Us4744UzYPNw4wojOM9Bj7RPYHgTWv1l UNSg9RONA==; 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 1fYTDt-0007Jw-FY; Thu, 28 Jun 2018 09:28:17 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DBEE52029764D; Thu, 28 Jun 2018 11:28:15 +0200 (CEST) Date: Thu, 28 Jun 2018 11:28:15 +0200 From: Peter Zijlstra To: Ard Biesheuvel Cc: Linux Kernel Mailing List , linux-arm-kernel , the arch/x86 maintainers , 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: <20180628092815.GD2494@hirez.programming.kicks-ass.net> References: <20180627160604.8154-1-ard.biesheuvel@linaro.org> <20180627160604.8154-6-ard.biesheuvel@linaro.org> <20180628083107.GY2494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Jun 28, 2018 at 10:34:54AM +0200, Ard Biesheuvel wrote: > On 28 June 2018 at 10:31, Peter Zijlstra wrote: > > 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 > > Thanks for the head's up. Fortunately, it does not conflict > fundamentally, so it should be a straight-forward rebase after that > code is merged. Yeah, shouldn't be hard to cure. There's another patch set that might have a little conflict, but that's not near ready I think, so that'll have to just cope with things shifting underneath (and there too, the fixup shouldn't be hard). > Do you think this is likely to get merged for v4.19? I'm thinking it is near ready so it might, but I'm not in charge of those bits :-)