Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1663139
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 18/34] x86/efi: Update EFI pagetable creation to work with SME |
| Date | 2017-06-11 21:50 +0200 |
| Message-ID | <tRh22-Dj-17@gated-at.bofh.it> (permalink) |
| References | <tPRjk-44i-19@gated-at.bofh.it> <tRh22-Dj-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jun 07, 2017 at 02:16:27PM -0500, 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.).
>
> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
> ---
> arch/x86/platform/efi/efi_64.c | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
patches 15-18:
Reviewed-by: Borislav Petkov <bp@suse.de>
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v6 18/34] x86/efi: Update EFI pagetable creation to work with SME Borislav Petkov <bp@alien8.de> - 2017-06-11 21:50 +0200
csiph-web