From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f72.google.com (mail-wm0-f72.google.com [74.125.82.72]) by kanga.kvack.org (Postfix) with ESMTP id 3BA736B0390 for ; Tue, 11 Apr 2017 06:51:10 -0400 (EDT) Received: by mail-wm0-f72.google.com with SMTP id 63so4222309wmr.15 for ; Tue, 11 Apr 2017 03:51:10 -0700 (PDT) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com. [2a00:1450:400c:c09::22e]) by mx.google.com with ESMTPS id 1si25563944wrp.137.2017.04.11.03.51.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2017 03:51:08 -0700 (PDT) Received: by mail-wm0-x22e.google.com with SMTP id u2so57830224wmu.0 for ; Tue, 11 Apr 2017 03:51:08 -0700 (PDT) Date: Tue, 11 Apr 2017 13:51:06 +0300 From: "Kirill A. Shutemov" Subject: Re: [PATCH 3/8] x86/boot/64: Add support of additional page table level during early boot Message-ID: <20170411105106.4zgbzuu4s4267zyv@node.shutemov.name> References: <20170406140106.78087-1-kirill.shutemov@linux.intel.com> <20170406140106.78087-4-kirill.shutemov@linux.intel.com> <20170411070203.GA14621@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170411070203.GA14621@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: Ingo Molnar 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 Tue, Apr 11, 2017 at 09:02:03AM +0200, Ingo Molnar wrote: > I realize that you had difficulties converting this to C, but it's not going to > get any easier in the future either, with one more paging mode/level added! > > If you are stuck on where it breaks I'd suggest doing it gradually: first add a > trivial .c, build and link it in and call it separately. Then once that works, > move functionality from asm to C step by step and test it at every step. I've described the specific issue with converting this code to C in cover letter: how to make compiler to generate 32-bit code for a specific function or translation unit, without breaking linking afterwards (-m32 break it). I would be glad to convert it, but I'm stuck. Do you have an idea how to get around the issue. -- 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