linux/arch/s390/mm
Christian Borntraeger 97ca7bfc19 s390/mm: set change and reference bit on lazy key enablement
When we enable storage keys for a guest lazily, we reset the ACC and F
values. That is correct assuming that these are 0 on a clear reset and
the guest obviously has not used any key setting instruction.

We also zero out the change and reference bit. This is not correct as
the architecture prefers over-indication instead of under-indication
for the keyless->keyed transition.

This patch fixes the behaviour and always sets guest change and guest
reference for all guest storage keys on the keyless -> keyed switch.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-07-13 11:28:29 +02:00
..
cmm.c
dump_pagetables.c
extmem.c
fault.c
gmap.c
gup.c
hugetlbpage.c
init.c
maccess.c
Makefile
mem_detect.c
mmap.c
page-states.c
pageattr.c
pgalloc.c
pgtable.c s390/mm: set change and reference bit on lazy key enablement 2017-07-13 11:28:29 +02:00
vmem.c