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
Unified · Split
| @@ -417,7 +417,7 @@ static void __init __map_region(efi_memory_desc_t *md, u64 va) · 416 unmodified lines | |||
| 417 | if (!(md->attribute & EFI_MEMORY_WB)) | 417 | if (!(md->attribute & EFI_MEMORY_WB)) |
| 418 | flags |= _PAGE_PCD; | 418 | flags |= _PAGE_PCD; |
| 419 | 419 | ||
| 420 | if (sev_active()) | 420 | if (sev_active() && md->type != EFI_MEMORY_MAPPED_IO) |
| 421 | flags |= _PAGE_ENC; | 421 | flags |= _PAGE_ENC; |
| 422 | 422 | ||
| 423 | pfn = md->phys_addr >> PAGE_SHIFT; | 423 | pfn = md->phys_addr >> PAGE_SHIFT; |