]> Git Repo - linux.git/commit
x86/mm, resource: Use PAGE_KERNEL protection for ioremap of memory pages
authorTom Lendacky <[email protected]>
Fri, 20 Oct 2017 14:30:52 +0000 (09:30 -0500)
committerThomas Gleixner <[email protected]>
Tue, 7 Nov 2017 14:35:58 +0000 (15:35 +0100)
commit0e4c12b45aa88e74fdda117896d2b61c4e510cb9
tree9007109ad9055fd3b23d6ba2d1f0b63e8421337e
parent1d2e733b13b450e5854f4a8f8efcd77fa7362d62
x86/mm, resource: Use PAGE_KERNEL protection for ioremap of memory pages

In order for memory pages to be properly mapped when SEV is active, it's
necessary to use the PAGE_KERNEL protection attribute as the base
protection.  This ensures that memory mapping of, e.g. ACPI tables,
receives the proper mapping attributes.

Signed-off-by: Tom Lendacky <[email protected]>
Signed-off-by: Brijesh Singh <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Tested-by: Borislav Petkov <[email protected]>
Cc: Laura Abbott <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: [email protected]
Cc: Jérôme Glisse <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/mm/ioremap.c
include/linux/ioport.h
kernel/resource.c
This page took 0.053492 seconds and 4 git commands to generate.