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 <[email protected]> > Signed-off-by: Tom Lendacky <[email protected]> > --- > arch/x86/platform/efi/efi_64.c | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) Reviewed-by: Matt Fleming <[email protected]> _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
- [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 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 15/36] x86/boot/e820: Add support to determine t... Tom Lendacky
- [PATCH v7 16/36] efi: Add an EFI table address match funct... Tom Lendacky
- [PATCH v7 17/36] efi: Update efi_mem_type() to return an e... Tom Lendacky
- [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 19/36] x86/mm: Add support to access boot relate... Tom Lendacky
- Re: [PATCH v7 19/36] x86/mm: Add support to access bo... Borislav Petkov
- Re: [PATCH v7 19/36] x86/mm: Add support to access bo... Matt Fleming
- [PATCH v7 20/36] x86, mpparse: Use memremap to map the mpf... Tom Lendacky
- Re: [PATCH v7 20/36] x86, mpparse: Use memremap to ma... Borislav Petkov
- [PATCH v7 22/36] x86/mm: Add support for changing the memo... Tom Lendacky
- [PATCH v7 21/36] x86/mm: Add support to access persistent ... Tom Lendacky
- [PATCH v7 23/36] x86, realmode: Decrypt trampoline area if... Tom Lendacky
- Re: [PATCH v7 23/36] x86, realmode: Decrypt trampolin... Borislav Petkov
- [PATCH v7 25/36] swiotlb: Add warnings for use of bounce b... Tom Lendacky
