From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758380AbdEOMbI (ORCPT ); Mon, 15 May 2017 08:31:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:35131 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758296AbdEOMbG (ORCPT ); Mon, 15 May 2017 08:31:06 -0400 Subject: Re: [PATCHv5, REBASED 8/9] x86: Enable 5-level paging support To: "Kirill A. Shutemov" , x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Cc: Andi Kleen , Dave Hansen , Andy Lutomirski , Dan Williams , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20170515121218.27610-1-kirill.shutemov@linux.intel.com> <20170515121218.27610-9-kirill.shutemov@linux.intel.com> From: Juergen Gross Message-ID: <9af22de7-89f3-576a-f933-c4e593924091@suse.com> Date: Mon, 15 May 2017 14:31:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <20170515121218.27610-9-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/05/17 14:12, 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 cd18994a9555..11bd0498f64c 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 027987638e98..12205e6dfa59 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 I'd rather put this under "config XEN_PV". Juergen