acrn-kernel/arch/x86/mm
Joerg Roedel c9f09539e1 x86/head/64: Check SEV encryption before switching to kernel page-table
When SEV is enabled, the kernel requests the C-bit position again from
the hypervisor to build its own page-table. Since the hypervisor is an
untrusted source, the C-bit position needs to be verified before the
kernel page-table is used.

Call sev_verify_cbit() before writing the CR3.

 [ bp: Massage. ]

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lkml.kernel.org/r/20201028164659.27002-5-joro@8bytes.org
2020-10-29 18:09:59 +01:00
..
pat x86/mm/pat: Don't flush cache if hardware enforces cache coherency across encryption domnains 2020-09-18 10:47:00 +02:00
Makefile
amdtopology.c
cpu_entry_area.c x86/dumpstack/64: Add noinstr version of get_stack_info() 2020-09-09 11:33:19 +02:00
debug_pagetables.c
dump_pagetables.c
extable.c This feature enhances the current guest memory encryption support 2020-10-14 10:21:34 -07:00
fault.c ARM: 2020-10-23 11:17:56 -07:00
highmem_32.c
hugetlbpage.c
ident_map.c
init.c
init_32.c
init_64.c x86/mm/64: Update comment in preallocate_vmalloc_pages() 2020-08-15 13:56:16 +02:00
iomap_32.c
ioremap.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
kasan_init_64.c
kaslr.c
kmmio.c
maccess.c
mem_encrypt.c x86/head/64: Check SEV encryption before switching to kernel page-table 2020-10-29 18:09:59 +01:00
mem_encrypt_boot.S
mem_encrypt_identity.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
mm_internal.h
mmap.c
mmio-mod.c
numa.c ACPI updates for 5.10-rc1 2020-10-14 11:42:04 -07:00
numa_32.c
numa_64.c
numa_emulation.c x86/numa: cleanup configuration dependent command-line options 2020-10-13 18:38:27 -07:00
numa_internal.h
pf_in.c
pf_in.h
pgtable.c
pgtable_32.c
physaddr.c
physaddr.h
pkeys.c
pti.c
setup_nx.c
srat.c
testmmiotrace.c
tlb.c x86/platform/uv: Remove UV BAU TLB Shootdown Handler 2020-10-07 08:45:39 +02:00