On Fri, 16 Jun, at 01:53:17PM, Tom Lendacky wrote: > When SME is active, pagetable entries created for EFI need to have the > encryption mask set as necessary. > > When the new pagetable pages are allocated they are mapped encrypted. So, > update the efi_pgt value that will be used in cr3 to include the encryption > mask so that the PGD table can be read successfully. The pagetable mapping > as well as the kernel are also added to the pagetable mapping as encrypted. > All other EFI mappings are mapped decrypted (tables, etc.). > > Reviewed-by: Borislav Petkov <b...@suse.de> > Signed-off-by: Tom Lendacky <thomas.lenda...@amd.com> > --- > arch/x86/platform/efi/efi_64.c | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) Reviewed-by: Matt Fleming <m...@codeblueprint.co.uk> -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
- Re: [PATCH v7 08/36] x86/mm: Add support to enable SM... Thomas Gleixner
- Re: [PATCH v7 08/36] x86/mm: Add support to enabl... Tom Lendacky
- Re: [PATCH v7 08/36] x86/mm: Add support to e... Thomas Gleixner
- Re: [PATCH v7 08/36] x86/mm: Add support ... Tom Lendacky
- Re: [PATCH v7 08/36] x86/mm: Add sup... Thomas Gleixner
- [PATCH v7 12/36] x86/mm: Extend early_memremap() support w... Tom Lendacky
- [PATCH v7 13/36] x86/mm: Add support for early encrypt/dec... Tom Lendacky
- [PATCH v7 14/36] x86/mm: Insure that boot memory areas are... Tom Lendacky
- Re: [PATCH v7 14/36] x86/mm: Insure that boot memory ... Borislav Petkov
- [PATCH v7 18/36] x86/efi: Update EFI pagetable creation to... Tom Lendacky
- Re: [PATCH v7 18/36] x86/efi: Update EFI pagetable cr... Matt Fleming
- [PATCH v7 25/36] swiotlb: Add warnings for use of bounce b... Tom Lendacky
- Re: [PATCH v7 25/36] swiotlb: Add warnings for use of... Borislav Petkov
- Re: [PATCH v7 25/36] swiotlb: Add warnings for us... Tom Lendacky
- [PATCH v7 28/36] x86, realmode: Check for memory encryptio... Tom Lendacky
- [PATCH v7 26/36] x86/CPU/AMD: Make the microcode level ava... Tom Lendacky
- Re: [PATCH v7 26/36] x86/CPU/AMD: Make the microcode ... Borislav Petkov
- [PATCH v7 27/36] iommu/amd: Allow the AMD IOMMU to work wi... Tom Lendacky
- Re: [PATCH v7 27/36] iommu/amd: Allow the AMD IOMMU t... Borislav Petkov
- Re: [PATCH v7 27/36] iommu/amd: Allow the AMD IOM... Tom Lendacky
- [PATCH v7 35/36] x86/boot: Add early cmdline parsing for o... Tom Lendacky