projects/linux·commit d464b031

Merge branch 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

d464b031 · Linus Torvalds <[email protected]> · 2018-07-30 11:07:34 -07:00

Pull EFI fix from Ingo Molnar:
 "An UEFI variables fix for SEV guests"

* 'efi-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/efi: Access EFI MMIO data as unencrypted when SEV is active
Commit
d464b0314c79996a0a4ae9ed3b13f914052d747d
Parents
acb18725 · 9b788f32

Merge commit. Changes below are compared with the first parent: acb18725.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
arch/x86/platform/efi/efi_64.cmodified+1−1View file

arch/x86/platform/efi/efi_64.c

View file
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
index 77873ce..5f2eb32 100644
--- a/arch/x86/platform/efi/efi_64.c
+++ b/arch/x86/platform/efi/efi_64.c
@@ -417,7 +417,7 @@ static void __init __map_region(efi_memory_desc_t *md, u64 va)
if (!(md->attribute & EFI_MEMORY_WB))
flags |= _PAGE_PCD;
- if (sev_active())
+ if (sev_active() && md->type != EFI_MEMORY_MAPPED_IO)
flags |= _PAGE_ENC;
pfn = md->phys_addr >> PAGE_SHIFT;