From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1175195AbdDYHZ2 (ORCPT ); Tue, 25 Apr 2017 03:25:28 -0400 Received: from edison.jonmasters.org ([173.255.233.168]:60811 "EHLO edison.jonmasters.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933994AbdDYHZV (ORCPT ); Tue, 25 Apr 2017 03:25:21 -0400 To: David Miller , glaubitz@physik.fu-berlin.de References: <030ea57b-5f6c-13d8-02f7-b245a754a87d@physik.fu-berlin.de> <20170424161959.c5ba2nhnxyy57wxe@node.shutemov.name> <20170424.180948.1311847745777709716.davem@davemloft.net> Cc: kirill@shutemov.name, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, ak@linux.intel.com, dave.hansen@intel.com, luto@amacapital.net, mhocko@suse.com, linux-arch@vger.kernel.org, linux-mm@kvack.org From: Jon Masters Organization: World Organi{s,z}ation Of Broken Dreams Message-ID: Date: Tue, 25 Apr 2017 03:25:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20170424.180948.1311847745777709716.davem@davemloft.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 74.92.29.237 X-SA-Exim-Mail-From: jcm@jonmasters.org Subject: Re: Question on the five-level page table support patches X-SA-Exim-Version: 4.2.1 (built Sun, 08 Nov 2009 07:31:22 +0000) X-SA-Exim-Scanned: Yes (on edison.jonmasters.org) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/24/2017 06:09 PM, David Miller wrote: > From: John Paul Adrian Glaubitz > Date: Mon, 24 Apr 2017 22:37:40 +0200 > >> Would be really nice to able to have a canonical solution for this issue, >> it's been biting us on SPARC for quite a while now due to the fact that >> virtual address space has been 52 bits on SPARC for a while now. > > It's going to break again with things like ADI which encode protection > keys in the high bits of the 64-bit virtual address. > > Reallly, it would be nice if these tags were instead encoded in the > low bits of suitably aligned memory allocations but I am sure it's to > late to do that now. I'm curious (and hey, ARM has 52-bit VAs coming[0] that was added in ARMv8.2). Does anyone really think pointer tagging is a good idea for a new architecture being created going forward? This could be archived somewhere so that the folks in Berkeley and elsewhere have an answer. As an aside, one of the reasons I've been tracking these Intel patches personally is to figure out the best way to play out the ARMv8 story. There isn't the same legacy of precompiled code out there (and the things that broke and were fixed when moving from 42-bit to 48-bit VA are already accounting for a later switch to 52-bit). I do find it amusing that I proposed a solution similar Kirill's a year or so back to some other folks elsewhere with a similar set of goals in mind. Jon. [0] Requires 64K pages on ARMv8. It's one of the previously unmentioned reasons why RHEL for ARM was built with 64K granule size ;)