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]> -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
- [PATCH v7 33/36] x86/mm: Use proper encryption attribute... Tom Lendacky
- [PATCH v7 29/36] x86, drm, fbdev: Do not specify encrypt... Tom Lendacky
- Re: [PATCH v7 29/36] x86, drm, fbdev: Do not specif... kbuild test robot
- [PATCH v7 30/36] kvm: x86: svm: Support Secure Memory En... Tom Lendacky
- [PATCH v7 24/36] x86, swiotlb: Add memory encryption sup... Tom Lendacky
- Re: [PATCH v7 24/36] x86, swiotlb: Add memory encry... Borislav Petkov
- [PATCH v7 23/36] x86, realmode: Decrypt trampoline area ... Tom Lendacky
- Re: [PATCH v7 23/36] x86, realmode: Decrypt trampol... Borislav Petkov
- [PATCH v7 21/36] x86/mm: Add support to access persisten... Tom Lendacky
- [PATCH v7 18/36] x86/efi: Update EFI pagetable creation ... Tom Lendacky
- Re: [PATCH v7 18/36] x86/efi: Update EFI pagetable ... Matt Fleming
- [PATCH v7 20/36] x86, mpparse: Use memremap to map the m... Tom Lendacky
- Re: [PATCH v7 20/36] x86, mpparse: Use memremap to ... Borislav Petkov
- [PATCH v7 17/36] efi: Update efi_mem_type() to return an... Tom Lendacky
- [PATCH v7 16/36] efi: Add an EFI table address match fun... Tom Lendacky
- [PATCH v7 19/36] x86/mm: Add support to access boot rela... Tom Lendacky
- Re: [PATCH v7 19/36] x86/mm: Add support to access ... Borislav Petkov
- Re: [PATCH v7 19/36] x86/mm: Add support to access ... Matt Fleming
- [PATCH v7 10/36] x86/mm: Provide general kernel support ... Tom Lendacky
