WSL2-Linux-Kernel/arch/s390/mm
Gerald Schaefer ff03b88467 s390/mm: remove useless hugepage address alignment
The failing address alignment to HPAGE_MASK in do_exception(), for
hugetlb faults, was useless from the beginning. With 2 GB hugepage
support it became wrong, but w/o further negative impact. Now it
could have negative performance impact because it breaks the cacheline
optimization for process_huge_page().

Therefore, remove it.

Note that we still have failing address alignment by HW to PAGE_SIZE,
for all page faults, not just hugetlb faults. So this patch will not
fix UFFD_FEATURE_EXACT_ADDRESS for userfaultfd handling. It will just
move the failing address for hugetlb faults a bit closer to the real
address, at 4K page granularity, similar to normal page faults.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2022-08-30 21:57:07 +02:00
..
Makefile
cmm.c
dump_pagetables.c Revert "s390/smp,ptdump: add absolute lowcore markers" 2022-08-06 09:13:28 +02:00
extable.c s390/uaccess: use exception handler to zero result on get_user() failure 2022-06-01 12:03:17 +02:00
extmem.c
fault.c s390/mm: remove useless hugepage address alignment 2022-08-30 21:57:07 +02:00
gmap.c KVM: s390: pv: refactor s390_reset_acc 2022-07-13 14:42:11 +00:00
hugetlbpage.c
init.c Revert "s390/smp: rework absolute lowcore access" 2022-08-06 09:24:07 +02:00
kasan_init.c
maccess.c Revert "s390/smp: rework absolute lowcore access" 2022-08-06 09:24:07 +02:00
mmap.c s390/mm: enable ARCH_HAS_VM_GET_PAGE_PROT 2022-07-17 17:14:40 -07:00
page-states.c
pageattr.c
pgalloc.c
pgtable.c s390/mm: use non-quiescing sske for KVM switch to keyed guest 2022-06-01 12:03:16 +02:00
vmem.c Revert "s390/smp: rework absolute lowcore access" 2022-08-06 09:24:07 +02:00