From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753481AbdJTUAM (ORCPT ); Fri, 20 Oct 2017 16:00:12 -0400 Received: from mga14.intel.com ([192.55.52.115]:24178 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753345AbdJTUAK (ORCPT ); Fri, 20 Oct 2017 16:00:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,408,1503385200"; d="scan'208";a="325758491" From: "Kirill A. Shutemov" To: Ingo Molnar , Linus Torvalds , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" Cc: Andy Lutomirski , Cyrill Gorcunov , Borislav Petkov , Andi Kleen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: [PATCH 0/4] Boot-time switching between 4- and 5-level paging for 4.15, Part 2 Date: Fri, 20 Oct 2017 22:59:30 +0300 Message-Id: <20171020195934.32108-1-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.14.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, Here's the second bunch of patches that prepare kernel to boot-time switching between paging modes. It's a small one. I hope we can get it in quick. :) I include the zsmalloc patch again. We need something to address the issue. If we would find a better solution, we can come back to the topic and rework it. Apart from zsmalloc patch, the patchset includes changes to decompression code. I reworked these patches. They are split not exactly the way you've described before, but I hope it's sensible anyway. Please review and consider applying. Kirill A. Shutemov (4): mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS x86/boot/compressed/64: Detect and handle 5-level paging at boot-time x86/boot/compressed/64: Introduce place_trampoline() x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G arch/x86/boot/compressed/head_64.S | 99 ++++++++++++++++++++--------- arch/x86/boot/compressed/pagetable.c | 61 ++++++++++++++++++ arch/x86/boot/compressed/pagetable.h | 18 ++++++ arch/x86/include/asm/pgtable-3level_types.h | 1 + arch/x86/include/asm/pgtable_64_types.h | 2 + mm/zsmalloc.c | 13 ++-- 6 files changed, 158 insertions(+), 36 deletions(-) create mode 100644 arch/x86/boot/compressed/pagetable.h -- 2.14.2