From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Cyrus-Session-Id: sloti22d1t05-1429491-1516934931-2-16248024782541518347 X-Sieve: CMU Sieve 3.0 X-Spam-known-sender: no ("Email failed DMARC policy for domain") X-Spam-score: 0.0 X-Spam-hits: BAYES_00 -1.9, HEADER_FROM_DIFFERENT_DOMAINS 0.25, ME_NOAUTH 0.01, RCVD_IN_DNSWL_HI -5, T_RP_MATCHES_RCVD -0.01, LANGUAGES en, BAYES_USED global, SA_VERSION 3.4.0 X-Spam-source: IP='209.132.180.67', Host='vger.kernel.org', Country='US', FromHeader='com', MailFrom='org' X-Spam-charsets: plain='us-ascii' X-IgnoreVacation: yes ("Email failed DMARC policy for domain") X-Resolved-to: greg@kroah.com X-Delivered-to: greg@kroah.com X-Mail-from: stable-owner@vger.kernel.org ARC-Seal: i=1; a=rsa-sha256; cv=none; d=messagingengine.com; s=arctest; t=1516934930; b=hFj7977kCg4KoD2oHSkiiDCYs/GTe5J7cntPr9Y2BX1PCZi l91YrwWRqAIEUengIQwRNifew+V+hWmhRuj6uuwM5s8H5e/bIlSWB49rH58qNj0D E/0CRFRl2LHEGDOjpPRmWzvRf9ss5QH6C0dxotUO2Wji6lOb01qc6ETsBjb1PnqP A/su+Pn8G2eei+UvnIeWnJCw7vfp0klOmbI8f2JmqNLmm0cX4zi9xh4qEWTxwMZM AVBENrWMvuj0UhSeYTAm2neE0znVDTbBm3wkNg1tpEQLKD0mwq+1MdWXcV0COJVb 3SBL+bsEGn5xszmV3F94tQ/tSNQ/srkc4Ix2trg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to:sender :list-id; s=arctest; t=1516934930; bh=6laVt5zXP4iMNI1u3lfSs46ZNE M6uYmIIMRJsUDEj8M=; b=o2Em1ebBgr3v0UxibSyzzDV1tRG/1tPtuVsnBKgDoj T9Uhd29ceOfHZpshAPnviE54DXFYk3D/7qqMKhgraCt/tUaSGKNOWL2hB5aw9EhI coSD4+zPdAczhSUCbvKrufcfB9QrxXVWzBn+7/7HMLWfP+mbF7kQtH0hj8Yi71Pp cajgkBXje09pwJZ4n39vhsLnPxJKaIDxSSueRa14edyaJuXddj6m1hORj+nFlgs7 IOPuzFF2O8bd6BRnissa8deUFI0hqZjIyG9mjne/Md/bWlMjuYgJy0BzcXCbzNZk YaKodO+++9jBj/9gp/cPGXmRRFWOd14cwXovpKT782Ww== ARC-Authentication-Results: i=1; mx4.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=fail (p=none,has-list-id=yes,d=none) header.from=redhat.com; iprev=pass policy.iprev=209.132.180.67 (vger.kernel.org); spf=none smtp.mailfrom=stable-owner@vger.kernel.org smtp.helo=vger.kernel.org; x-aligned-from=fail; x-ptr=pass x-ptr-helo=vger.kernel.org x-ptr-lookup=vger.kernel.org; x-return-mx=pass smtp.domain=vger.kernel.org smtp.result=pass smtp_org.domain=kernel.org smtp_org.result=pass smtp_is_org_domain=no header.domain=redhat.com header.result=pass header_is_org_domain=yes Authentication-Results: mx4.messagingengine.com; arc=none (no signatures found); dkim=none (no signatures found); dmarc=fail (p=none,has-list-id=yes,d=none) header.from=redhat.com; iprev=pass policy.iprev=209.132.180.67 (vger.kernel.org); spf=none smtp.mailfrom=stable-owner@vger.kernel.org smtp.helo=vger.kernel.org; x-aligned-from=fail; x-ptr=pass x-ptr-helo=vger.kernel.org x-ptr-lookup=vger.kernel.org; x-return-mx=pass smtp.domain=vger.kernel.org smtp.result=pass smtp_org.domain=kernel.org smtp_org.result=pass smtp_is_org_domain=no header.domain=redhat.com header.result=pass header_is_org_domain=yes Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751737AbeAZCss (ORCPT ); Thu, 25 Jan 2018 21:48:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34324 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbeAZCsr (ORCPT ); Thu, 25 Jan 2018 21:48:47 -0500 Date: Fri, 26 Jan 2018 10:48:41 +0800 From: Baoquan He To: "Kirill A. Shutemov" Cc: Ingo Molnar , Mike Galbraith , Andrew Morton , Peter Zijlstra , Greg Kroah-Hartman , Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Andy Lutomirski , linux-mm@kvack.org, Vivek Goyal , Cyrill Gorcunov , Thomas Gleixner , Borislav Petkov , Linus Torvalds , "Kirill A. Shutemov" Subject: Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y Message-ID: <20180126024841.GA1759@localhost.localdomain> References: <20171222084623.668990192@linuxfoundation.org> <20171222084625.007160464@linuxfoundation.org> <1515302062.6507.18.camel@gmx.de> <20180108160444.2ol4fvgqbxnjmlpg@gmail.com> <20180108174653.7muglyihpngxp5tl@black.fi.intel.com> <20180109001303.dy73bpixsaegn4ol@node.shutemov.name> <20180117052454.GA2321@localhost.localdomain> <20180125155043.nj5b26yxutds7f37@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180125155043.nj5b26yxutds7f37@node.shutemov.name> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: stable-owner@vger.kernel.org X-Mailing-List: stable@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On 01/25/18 at 06:50pm, Kirill A. Shutemov wrote: > On Wed, Jan 17, 2018 at 01:24:54PM +0800, Baoquan He wrote: > > Hi Kirill, > > > > I setup qemu 2.9.0 to test 5-level on kexec/kdump support. While both > > kexec and kdump reset to BIOS immediately after triggering. I saw your > > patch adding 5-level paging support for kexec. Wonder if your test > > succeeded to jump into kexec/kdump kernel, and what else I need to > > make it. By the way, I just tested the latest upstream kernel. > > > > commit 7f6890418 x86/kexec: Add 5-level paging support > > > > [ ~]$ qemu-system-x86_64 --version > > QEMU emulator version 2.9.0(qemu-2.9.0-1.fc26.1) > > Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers > > Sorry for delay. > > I didn't tested it in 5-level paging mode :-/ > > The patch below helps in my case. Could you test it? Thanks, Kirill. Seems it doesn't work. I have some confusion about the process, will send you a private mail. Thanks Baoquan > > diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S > index 307d3bac5f04..65a98cf2307d 100644 > --- a/arch/x86/kernel/relocate_kernel_64.S > +++ b/arch/x86/kernel/relocate_kernel_64.S > @@ -126,8 +126,12 @@ identity_mapped: > /* > * Set cr4 to a known state: > * - physical address extension enabled > + * - 5-level paging, if enabled > */ > movl $X86_CR4_PAE, %eax > +#ifdef CONFIG_X86_5LEVEL > + orl $X86_CR4_LA57, %eax > +#endif > movq %rax, %cr4 > > jmp 1f > -- > Kirill A. Shutemov From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 26 Jan 2018 10:48:41 +0800 From: Baoquan He To: "Kirill A. Shutemov" Cc: Ingo Molnar , Mike Galbraith , Andrew Morton , Peter Zijlstra , Greg Kroah-Hartman , Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Andy Lutomirski , linux-mm@kvack.org, Vivek Goyal , Cyrill Gorcunov , Thomas Gleixner , Borislav Petkov , Linus Torvalds , "Kirill A. Shutemov" Subject: Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y Message-ID: <20180126024841.GA1759@localhost.localdomain> References: <20171222084623.668990192@linuxfoundation.org> <20171222084625.007160464@linuxfoundation.org> <1515302062.6507.18.camel@gmx.de> <20180108160444.2ol4fvgqbxnjmlpg@gmail.com> <20180108174653.7muglyihpngxp5tl@black.fi.intel.com> <20180109001303.dy73bpixsaegn4ol@node.shutemov.name> <20180117052454.GA2321@localhost.localdomain> <20180125155043.nj5b26yxutds7f37@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180125155043.nj5b26yxutds7f37@node.shutemov.name> Sender: owner-linux-mm@kvack.org List-ID: On 01/25/18 at 06:50pm, Kirill A. Shutemov wrote: > On Wed, Jan 17, 2018 at 01:24:54PM +0800, Baoquan He wrote: > > Hi Kirill, > > > > I setup qemu 2.9.0 to test 5-level on kexec/kdump support. While both > > kexec and kdump reset to BIOS immediately after triggering. I saw your > > patch adding 5-level paging support for kexec. Wonder if your test > > succeeded to jump into kexec/kdump kernel, and what else I need to > > make it. By the way, I just tested the latest upstream kernel. > > > > commit 7f6890418 x86/kexec: Add 5-level paging support > > > > [ ~]$ qemu-system-x86_64 --version > > QEMU emulator version 2.9.0(qemu-2.9.0-1.fc26.1) > > Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers > > Sorry for delay. > > I didn't tested it in 5-level paging mode :-/ > > The patch below helps in my case. Could you test it? Thanks, Kirill. Seems it doesn't work. I have some confusion about the process, will send you a private mail. Thanks Baoquan > > diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S > index 307d3bac5f04..65a98cf2307d 100644 > --- a/arch/x86/kernel/relocate_kernel_64.S > +++ b/arch/x86/kernel/relocate_kernel_64.S > @@ -126,8 +126,12 @@ identity_mapped: > /* > * Set cr4 to a known state: > * - physical address extension enabled > + * - 5-level paging, if enabled > */ > movl $X86_CR4_PAE, %eax > +#ifdef CONFIG_X86_5LEVEL > + orl $X86_CR4_LA57, %eax > +#endif > movq %rax, %cr4 > > jmp 1f > -- > Kirill A. Shutemov -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eeu4Y-0007PK-Bm for kexec@lists.infradead.org; Fri, 26 Jan 2018 02:49:00 +0000 Date: Fri, 26 Jan 2018 10:48:41 +0800 From: Baoquan He Subject: Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y Message-ID: <20180126024841.GA1759@localhost.localdomain> References: <20171222084623.668990192@linuxfoundation.org> <20171222084625.007160464@linuxfoundation.org> <1515302062.6507.18.camel@gmx.de> <20180108160444.2ol4fvgqbxnjmlpg@gmail.com> <20180108174653.7muglyihpngxp5tl@black.fi.intel.com> <20180109001303.dy73bpixsaegn4ol@node.shutemov.name> <20180117052454.GA2321@localhost.localdomain> <20180125155043.nj5b26yxutds7f37@node.shutemov.name> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180125155043.nj5b26yxutds7f37@node.shutemov.name> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: "Kirill A. Shutemov" Cc: Peter Zijlstra , Greg Kroah-Hartman , Mike Galbraith , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Andy Lutomirski , linux-mm@kvack.org, Thomas Gleixner , "Kirill A. Shutemov" , Linus Torvalds , Cyrill Gorcunov , Andrew Morton , Borislav Petkov , Dave Young , Ingo Molnar , Vivek Goyal On 01/25/18 at 06:50pm, Kirill A. Shutemov wrote: > On Wed, Jan 17, 2018 at 01:24:54PM +0800, Baoquan He wrote: > > Hi Kirill, > > > > I setup qemu 2.9.0 to test 5-level on kexec/kdump support. While both > > kexec and kdump reset to BIOS immediately after triggering. I saw your > > patch adding 5-level paging support for kexec. Wonder if your test > > succeeded to jump into kexec/kdump kernel, and what else I need to > > make it. By the way, I just tested the latest upstream kernel. > > > > commit 7f6890418 x86/kexec: Add 5-level paging support > > > > [ ~]$ qemu-system-x86_64 --version > > QEMU emulator version 2.9.0(qemu-2.9.0-1.fc26.1) > > Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers > > Sorry for delay. > > I didn't tested it in 5-level paging mode :-/ > > The patch below helps in my case. Could you test it? Thanks, Kirill. Seems it doesn't work. I have some confusion about the process, will send you a private mail. Thanks Baoquan > > diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S > index 307d3bac5f04..65a98cf2307d 100644 > --- a/arch/x86/kernel/relocate_kernel_64.S > +++ b/arch/x86/kernel/relocate_kernel_64.S > @@ -126,8 +126,12 @@ identity_mapped: > /* > * Set cr4 to a known state: > * - physical address extension enabled > + * - 5-level paging, if enabled > */ > movl $X86_CR4_PAE, %eax > +#ifdef CONFIG_X86_5LEVEL > + orl $X86_CR4_LA57, %eax > +#endif > movq %rax, %cr4 > > jmp 1f > -- > Kirill A. Shutemov _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec