From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755304AbdDFP5A (ORCPT ); Thu, 6 Apr 2017 11:57:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:32798 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753506AbdDFP4w (ORCPT ); Thu, 6 Apr 2017 11:56:52 -0400 Subject: Re: [PATCH 7/8] x86: Enable 5-level paging support To: "Kirill A. Shutemov" References: <20170406140106.78087-1-kirill.shutemov@linux.intel.com> <20170406140106.78087-8-kirill.shutemov@linux.intel.com> <469e1232-617c-daaa-90a6-a90d6f80059f@suse.com> <20170406152438.ekpu34qe2wzevf4h@node.shutemov.name> Cc: "Kirill A. Shutemov" , Linus Torvalds , Andrew Morton , x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Dave Hansen , Andy Lutomirski , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Juergen Gross Message-ID: Date: Thu, 6 Apr 2017 17:56:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170406152438.ekpu34qe2wzevf4h@node.shutemov.name> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/04/17 17:24, Kirill A. Shutemov wrote: > On Thu, Apr 06, 2017 at 04:52:11PM +0200, Juergen Gross wrote: >> On 06/04/17 16:01, Kirill A. Shutemov wrote: >>> Most of things are in place and we can enable support of 5-level paging. >>> >>> Enabling XEN with 5-level paging requires more work. The patch makes XEN >>> dependent on !X86_5LEVEL. >>> >>> Signed-off-by: Kirill A. Shutemov >>> --- >>> arch/x86/Kconfig | 5 +++++ >>> arch/x86/xen/Kconfig | 1 + >>> 2 files changed, 6 insertions(+) >>> >>> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >>> index 4e153e93273f..7a76dcac357e 100644 >>> --- a/arch/x86/Kconfig >>> +++ b/arch/x86/Kconfig >>> @@ -318,6 +318,7 @@ config FIX_EARLYCON_MEM >>> >>> config PGTABLE_LEVELS >>> int >>> + default 5 if X86_5LEVEL >>> default 4 if X86_64 >>> default 3 if X86_PAE >>> default 2 >>> @@ -1390,6 +1391,10 @@ config X86_PAE >>> has the cost of more pagetable lookup overhead, and also >>> consumes more pagetable space per process. >>> >>> +config X86_5LEVEL >>> + bool "Enable 5-level page tables support" >>> + depends on X86_64 >>> + >>> config ARCH_PHYS_ADDR_T_64BIT >>> def_bool y >>> depends on X86_64 || X86_PAE >>> diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig >>> index 76b6dbd627df..b90d481ce5a1 100644 >>> --- a/arch/x86/xen/Kconfig >>> +++ b/arch/x86/xen/Kconfig >>> @@ -5,6 +5,7 @@ >>> config XEN >>> bool "Xen guest support" >>> depends on PARAVIRT >>> + depends on !X86_5LEVEL >>> select PARAVIRT_CLOCK >>> select XEN_HAVE_PVMMU >>> select XEN_HAVE_VPMU >>> >> >> Just a heads up: this last change will conflict with the Xen tree. > > It should be trivial to fix, right? It's one-liner after all. Right. Just wanted to mention it. Juergen From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by kanga.kvack.org (Postfix) with ESMTP id 57DC36B0038 for ; Thu, 6 Apr 2017 11:56:52 -0400 (EDT) Received: by mail-wr0-f200.google.com with SMTP id y77so6748521wrb.22 for ; Thu, 06 Apr 2017 08:56:52 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id s18si3112190wrs.313.2017.04.06.08.56.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 06 Apr 2017 08:56:51 -0700 (PDT) Subject: Re: [PATCH 7/8] x86: Enable 5-level paging support References: <20170406140106.78087-1-kirill.shutemov@linux.intel.com> <20170406140106.78087-8-kirill.shutemov@linux.intel.com> <469e1232-617c-daaa-90a6-a90d6f80059f@suse.com> <20170406152438.ekpu34qe2wzevf4h@node.shutemov.name> From: Juergen Gross Message-ID: Date: Thu, 6 Apr 2017 17:56:47 +0200 MIME-Version: 1.0 In-Reply-To: <20170406152438.ekpu34qe2wzevf4h@node.shutemov.name> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: "Kirill A. Shutemov" , Linus Torvalds , Andrew Morton , x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Dave Hansen , Andy Lutomirski , linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org On 06/04/17 17:24, Kirill A. Shutemov wrote: > On Thu, Apr 06, 2017 at 04:52:11PM +0200, Juergen Gross wrote: >> On 06/04/17 16:01, Kirill A. Shutemov wrote: >>> Most of things are in place and we can enable support of 5-level paging. >>> >>> Enabling XEN with 5-level paging requires more work. The patch makes XEN >>> dependent on !X86_5LEVEL. >>> >>> Signed-off-by: Kirill A. Shutemov >>> --- >>> arch/x86/Kconfig | 5 +++++ >>> arch/x86/xen/Kconfig | 1 + >>> 2 files changed, 6 insertions(+) >>> >>> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >>> index 4e153e93273f..7a76dcac357e 100644 >>> --- a/arch/x86/Kconfig >>> +++ b/arch/x86/Kconfig >>> @@ -318,6 +318,7 @@ config FIX_EARLYCON_MEM >>> >>> config PGTABLE_LEVELS >>> int >>> + default 5 if X86_5LEVEL >>> default 4 if X86_64 >>> default 3 if X86_PAE >>> default 2 >>> @@ -1390,6 +1391,10 @@ config X86_PAE >>> has the cost of more pagetable lookup overhead, and also >>> consumes more pagetable space per process. >>> >>> +config X86_5LEVEL >>> + bool "Enable 5-level page tables support" >>> + depends on X86_64 >>> + >>> config ARCH_PHYS_ADDR_T_64BIT >>> def_bool y >>> depends on X86_64 || X86_PAE >>> diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig >>> index 76b6dbd627df..b90d481ce5a1 100644 >>> --- a/arch/x86/xen/Kconfig >>> +++ b/arch/x86/xen/Kconfig >>> @@ -5,6 +5,7 @@ >>> config XEN >>> bool "Xen guest support" >>> depends on PARAVIRT >>> + depends on !X86_5LEVEL >>> select PARAVIRT_CLOCK >>> select XEN_HAVE_PVMMU >>> select XEN_HAVE_VPMU >>> >> >> Just a heads up: this last change will conflict with the Xen tree. > > It should be trivial to fix, right? It's one-liner after all. Right. Just wanted to mention it. Juergen -- 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