From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f70.google.com (mail-it0-f70.google.com [209.85.214.70]) by kanga.kvack.org (Postfix) with ESMTP id 595436B02F4 for ; Fri, 26 May 2017 11:51:50 -0400 (EDT) Received: by mail-it0-f70.google.com with SMTP id z125so9746763itc.4 for ; Fri, 26 May 2017 08:51:50 -0700 (PDT) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com. [2607:f8b0:4001:c06::234]) by mx.google.com with ESMTPS id o71si2419157ito.70.2017.05.26.08.51.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 May 2017 08:51:49 -0700 (PDT) Received: by mail-io0-x234.google.com with SMTP id f102so11809271ioi.2 for ; Fri, 26 May 2017 08:51:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170526130057.t7zsynihkdtsepkf@node.shutemov.name> References: <20170525203334.867-1-kirill.shutemov@linux.intel.com> <20170526130057.t7zsynihkdtsepkf@node.shutemov.name> From: Linus Torvalds Date: Fri, 26 May 2017 08:51:48 -0700 Message-ID: Subject: Re: [PATCHv1, RFC 0/8] Boot-time switching between 4- and 5-level paging Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , Andrew Morton , the arch/x86 maintainers , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Dave Hansen , Andy Lutomirski , "linux-arch@vger.kernel.org" , linux-mm , Linux Kernel Mailing List On Fri, May 26, 2017 at 6:00 AM, Kirill A. Shutemov wrote: > > I don't see how kernel threads can use 4-level paging. It doesn't work > from virtual memory layout POV. Kernel claims half of full virtual address > space for itself -- 256 PGD entries, not one as we would effectively have > in case of switching to 4-level paging. For instance, addresses, where > vmalloc and vmemmap are mapped, are not canonical with 4-level paging. I would have just assumed we'd map the kernel in the shared part that fits in the top 47 bits. But it sounds like you can't switch back and forth anyway, so I guess it's moot. Where *is* the LA57 documentation, btw? I had an old x86 architecture manual, so I updated it, but LA57 isn't mentioned in the new one either. Linus -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org