summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLianbo Jiang2019-04-23 03:30:06 +0200
committerBorislav Petkov2019-06-20 09:58:07 +0200
commit5da04cc86d1215fd9fe0e5c88ead6e8428a75e56 (patch)
tree6e0d02058d6d5abf71bf78c46af644ed267a4c1e /tools
parentx86/e820, ioport: Add a new I/O resource descriptor IORES_DESC_RESERVED (diff)
downloadkernel-qcow2-linux-5da04cc86d1215fd9fe0e5c88ead6e8428a75e56.tar.gz
kernel-qcow2-linux-5da04cc86d1215fd9fe0e5c88ead6e8428a75e56.tar.xz
kernel-qcow2-linux-5da04cc86d1215fd9fe0e5c88ead6e8428a75e56.zip
x86/mm: Rework ioremap resource mapping determination
On ioremap(), __ioremap_check_mem() does a couple of checks on the supplied memory range to determine how the range should be mapped and in particular what protection flags should be used. Generalize the procedure by introducing IORES_MAP_* flags which control different aspects of the ioremapping and use them in the respective helpers which determine which descriptor flags should be set per range. [ bp: - Rewrite commit message. - Add/improve comments. - Reflow __ioremap_caller()'s args. - s/__ioremap_check_desc/__ioremap_check_encrypted/g; - s/__ioremap_res_check/__ioremap_collect_map_flags/g; - clarify __ioremap_check_ram()'s purpose. ] Signed-off-by: Lianbo Jiang <lijiang@redhat.com> Co-developed-by: Borislav Petkov <bp@suse.de> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: bhe@redhat.com Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: dyoung@redhat.com Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: kexec@lists.infradead.org Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190423013007.17838-3-lijiang@redhat.com
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions