acrn-kernel/arch/s390/mm
Heiko Carstens a1a1e5ce88 s390/mm: add missing arch_set_page_dat() call to vmem_crst_alloc()
[ Upstream commit 09cda0a400519b1541591c506e54c9c48e3101bf ]

If the cmma no-dat feature is available all pages that are not used for
dynamic address translation are marked as "no-dat" with the ESSA
instruction. This information is visible to the hypervisor, so that the
hypervisor can optimize purging of guest TLB entries. This also means that
pages which are used for dynamic address translation must not be marked as
"no-dat", since the hypervisor may then incorrectly not purge guest TLB
entries.

Region and segment tables allocated via vmem_crst_alloc() are incorrectly
marked as "no-dat", as soon as slab_is_available() returns true.

Such tables are allocated e.g. when kernel page tables are split, memory is
hotplugged, or a DCSS segment is loaded.

Fix this by adding the missing arch_set_page_dat() call.

Cc: <stable@vger.kernel.org>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-10 17:10:30 +01:00
..
Makefile
cmm.c
dump_pagetables.c
extable.c
extmem.c
fault.c
gmap.c KVM: s390: pv: fix index value of replaced ASCE 2023-08-03 10:23:48 +02:00
hugetlbpage.c
init.c
kasan_init.c
maccess.c
mmap.c
page-states.c s390/cmma: fix detection of DAT pages 2023-11-28 17:07:14 +00:00
pageattr.c
pgalloc.c
pgtable.c KVM: s390/mm: Properly reset no-dat 2023-12-13 18:39:29 +01:00
vmem.c s390/mm: add missing arch_set_page_dat() call to vmem_crst_alloc() 2024-01-10 17:10:30 +01:00