]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/xen: Build identity mapping page tables dynamically for XENPV
authorHou Wenlong <houwenlong.hwl@antgroup.com>
Thu, 22 Jan 2026 10:06:14 +0000 (18:06 +0800)
committerJuergen Gross <jgross@suse.com>
Tue, 3 Mar 2026 13:21:44 +0000 (14:21 +0100)
commit63dc2c34a91642d9ae615a9609841fa317a36c92
treebc2d1f71a93818c3291cc76e591b68422977da3d
parent5043d7ed39dfdce3107d6642aa31bb7736547104
x86/xen: Build identity mapping page tables dynamically for XENPV

After commit 47ffe0578aee ("x86/pvh: Add 64bit relocation page tables"),
the PVH entry uses a new set of page tables instead of the
preconstructed page tables in head64.S. Since those preconstructed page
tables are only used in XENPV now and XENPV does not actually need the
preconstructed identity page tables directly, they can be filled in
xen_setup_kernel_pagetable(). Therefore, build the identity mapping page
table dynamically to remove the preconstructed page tables and make the
code cleaner.

Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: "Borislav Petkov (AMD)" <bp@alien8.de>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <453981eae7e8158307f971d1632d5023adbe03c3.1769074722.git.houwenlong.hwl@antgroup.com>
arch/x86/include/asm/pgtable_64.h
arch/x86/kernel/head_64.S
arch/x86/xen/mmu_pv.c