]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Remap the IOMMU device table with the memory encryption mask for kdump
authorLianbo Jiang <lijiang@redhat.com>
Sun, 30 Sep 2018 03:10:32 +0000 (11:10 +0800)
committerBorislav Petkov <bp@suse.de>
Sat, 6 Oct 2018 10:08:24 +0000 (12:08 +0200)
commitb92ba64a88f896a2a92f26760e9ff6eed2dd212b
treef1ec4f6d18241336803ed720f22ee80cbdf6bd19
parentfa319574cad70605f07b37a63fe85e5cd17efb48
iommu/amd: Remap the IOMMU device table with the memory encryption mask for kdump

The kdump kernel copies the IOMMU device table from the old device table
which is encrypted when SME is enabled in the first kernel. So remap the
old device table with the memory encryption mask in the kdump kernel.

 [ bp: Massage commit message. ]

Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Joerg Roedel <jroedel@suse.de>
Cc: kexec@lists.infradead.org
Cc: tglx@linutronix.de
Cc: mingo@redhat.com
Cc: hpa@zytor.com
Cc: akpm@linux-foundation.org
Cc: dan.j.williams@intel.com
Cc: bhelgaas@google.com
Cc: baiyaowei@cmss.chinamobile.com
Cc: tiwai@suse.de
Cc: brijesh.singh@amd.com
Cc: dyoung@redhat.com
Cc: bhe@redhat.com
Link: https://lkml.kernel.org/r/20180930031033.22110-4-lijiang@redhat.com
drivers/iommu/amd_iommu_init.c