On Wed, Sep 27, 2017 at 10:13:22AM -0500, Brijesh Singh wrote: > From: Tom Lendacky <thomas.lenda...@amd.com> > > In order for memory pages to be properly mapped when SEV is active, we > need to use the PAGE_KERNEL protection attribute as the base protection. > This will insure that memory mapping of, e.g. ACPI tables, receives the > proper mapping attributes. > > Cc: Thomas Gleixner <t...@linutronix.de> > Cc: Ingo Molnar <mi...@redhat.com> > Cc: "H. Peter Anvin" <h...@zytor.com> > Cc: Borislav Petkov <b...@suse.de> > Cc: "Kirill A. Shutemov" <kirill.shute...@linux.intel.com> > Cc: Laura Abbott <labb...@redhat.com> > Cc: Andy Lutomirski <l...@kernel.org> > Cc: "Jérôme Glisse" <jgli...@redhat.com> > Cc: Andrew Morton <a...@linux-foundation.org> > Cc: Dan Williams <dan.j.willi...@intel.com> > Cc: Kees Cook <keesc...@chromium.org> > Cc: x...@kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Tom Lendacky <thomas.lenda...@amd.com> > Signed-off-by: Brijesh Singh <brijesh.si...@amd.com> > --- > arch/x86/mm/ioremap.c | 79 > ++++++++++++++++++++++++++++++++++++++++++-------- > include/linux/ioport.h | 3 ++ > kernel/resource.c | 19 ++++++++++++ > 3 files changed, 89 insertions(+), 12 deletions(-)
Reviewed-by: Borislav Petkov <b...@suse.de> -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --