From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EABA2C77B7D for ; Mon, 15 May 2023 08:22:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233811AbjEOIWS (ORCPT ); Mon, 15 May 2023 04:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbjEOIUO (ORCPT ); Mon, 15 May 2023 04:20:14 -0400 Received: from out0-207.mail.aliyun.com (out0-207.mail.aliyun.com [140.205.0.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9173E6E for ; Mon, 15 May 2023 01:20:12 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047212;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=28;SR=0;TI=SMTPD_---.T2DpdLD_1684138803; Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.T2DpdLD_1684138803) by smtp.aliyun-inc.com; Mon, 15 May 2023 16:20:04 +0800 From: "Hou Wenlong" To: linux-kernel@vger.kernel.org Cc: "Lai Jiangshan" , "Hou Wenlong" , "Alexey Makhalov" , "Andrew Morton" , "Andy Lutomirski" , "Anshuman Khandual" , "Borislav Petkov" , "Boris Ostrovsky" , "Brian Gerst" , "Dave Hansen" , "David Woodhouse" , "H. Peter Anvin" , "Ingo Molnar" , "Josh Poimboeuf" , "Juergen Gross" , "Kirill A. Shutemov" , "=?UTF-8?B?TWlrZSBSYXBvcG9ydCAoSUJNKQ==?=" , "Pasha Tatashin" , "Peter Zijlstra" , "=?UTF-8?B?U3JpdmF0c2EgUy4gQmhhdCAoVk13YXJlKQ==?=" , "Suren Baghdasaryan" , "Thomas Gleixner" , "Usama Arif" , , "VMware PV-Drivers Reviewers" , , Subject: [PATCH RFC 0/4] x86/fixmap: Unify FIXADDR_TOP Date: Mon, 15 May 2023 16:19:31 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset unifies FIXADDR_TOP as a variable for x86, allowing the fixmap area to be movable and relocated with the kernel image in the x86/PIE patchset [0]. This enables the kernel image to be relocated in the top 512G of the address space. [0] https://lore.kernel.org/lkml/cover.1682673542.git.houwenlong.hwl@antgroup.com Hou Wenlong (4): x86/vsyscall: Don't use set_fixmap() to map vsyscall page x86/xen: Pin up to VSYSCALL_ADDR when vsyscall page is out of fixmap area x86/fixmap: Move vsyscall page out of fixmap area x86/fixmap: Unify FIXADDR_TOP arch/x86/entry/vsyscall/vsyscall_64.c | 7 +----- arch/x86/include/asm/fixmap.h | 28 ++++------------------- arch/x86/include/asm/paravirt.h | 7 ++++++ arch/x86/include/asm/paravirt_types.h | 4 ++++ arch/x86/include/asm/vsyscall.h | 13 +++++++++++ arch/x86/kernel/head64.c | 1 - arch/x86/kernel/head_64.S | 6 ++--- arch/x86/kernel/paravirt.c | 4 ++++ arch/x86/mm/dump_pagetables.c | 3 ++- arch/x86/mm/fault.c | 1 - arch/x86/mm/init_64.c | 2 +- arch/x86/mm/ioremap.c | 5 ++--- arch/x86/mm/pgtable.c | 13 +++++++++++ arch/x86/mm/pgtable_32.c | 3 --- arch/x86/xen/mmu_pv.c | 32 +++++++++++++++++++-------- 15 files changed, 77 insertions(+), 52 deletions(-) base-commit: f585d5177e1aad174fd6da0e3936b682ed58ced0 -- 2.31.1