]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: implement software referenced bits
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Jul 2013 20:11:42 +0000 (22:11 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Aug 2013 11:20:11 +0000 (13:20 +0200)
commitfecf48a092c9a146f7d86964dae72b25dda92e7a
tree7b2ada69ff7e3c1fae20ec0b1dffe5e0d0ec2cc6
parent0a1de07f8f415302271e01be4e61b14d5233d906
s390/mm: implement software referenced bits

The last remaining use for the storage key of the s390 architecture
is reference counting. The alternative is to make page table entries
invalid while they are old. On access the fault handler marks the
pte/pmd as young which makes the pte/pmd valid if the access rights
allow read access. The pte/pmd invalidations required for software
managed reference bits cost a bit of performance, on the other hand
the RRBE/RRBM instructions to read and reset the referenced bits are
quite expensive as well.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/page.h
arch/s390/include/asm/pgtable.h
arch/s390/mm/hugetlbpage.c
arch/s390/mm/pgtable.c
arch/s390/mm/vmem.c
include/asm-generic/pgtable.h
mm/rmap.c