]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/mm/init.c
x86, kexec, 64bit: Only set ident mapping for ram.
authorYinghai Lu <yinghai@kernel.org>
Thu, 24 Jan 2013 20:20:05 +0000 (12:20 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 29 Jan 2013 23:26:35 +0000 (15:26 -0800)
commit0e691cf824f76adefb4498fe39c300aba2c2575a
tree6e61f59e7f100eac02a9aa7e064eaaa34e4e1904
parent9ebdc79f7a177d3098b89ba8ef2dd2b235163685
x86, kexec, 64bit: Only set ident mapping for ram.

We should set mappings only for usable memory ranges under max_pfn
Otherwise causes same problem that is fixed by

x86, mm: Only direct map addresses that are marked as E820_RAM

This patch exposes pfn_mapped array, and only sets ident mapping for ranges
in that array.

This patch relies on new kernel_ident_mapping_init that could handle existing
pgd/pud between different calls.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1359058816-7615-25-git-send-email-yinghai@kernel.org
Cc: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/page.h
arch/x86/kernel/machine_kexec_64.c
arch/x86/mm/init.c