linux/arch/s390
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
..
appldata sched/headers: Move task statistics APIs from <linux/sched.h> to <linux/sched/stat.h> 2017-03-03 01:43:43 +01:00
boot s390/decompressor: fix initrd corruption caused by bss clear 2017-03-22 08:21:20 +01:00
configs s390: update defconfig 2017-06-08 15:53:48 +02:00
crypto s390/crypto: fix aes/paes Kconfig dependeny 2017-06-12 16:25:58 +02:00
hypfs s390: hypfs: make inode explicitly non-modular 2016-10-31 17:55:40 +01:00
include s390: reduce ELF_ET_DYN_BASE 2017-07-10 16:32:36 -07:00
kernel s390/perf: fix problem state detection 2017-07-13 11:28:29 +02:00
kvm PPC: 2017-07-06 18:38:31 -07:00
lib s390/uaccess: use sane length for __strncpy_from_user() 2017-05-09 10:43:24 +02:00
mm s390/mm: set change and reference bit on lazy key enablement 2017-07-13 11:28:29 +02:00
net bpf: Add jited_len to struct bpf_prog 2017-06-06 15:41:24 -04:00
numa s390/numa: pin all possible cpus to nodes early 2016-12-07 07:23:33 +01:00
oprofile s390/dumpstack: restore reliable indicator for call traces 2016-10-17 14:44:30 +02:00
pci This is the first pull request for the new dma-mapping subsystem 2017-07-06 19:20:54 -07:00
tools s390/facilities: remove stfle requirement 2017-06-12 16:25:59 +02:00
defconfig s390: update defconfig 2017-06-08 15:53:48 +02:00
Kbuild s390/crypto: Provide s390 specific arch random functionality. 2017-04-26 13:41:35 +02:00
Kconfig mm/hugetlb: clean up ARCH_HAS_GIGANTIC_PAGE 2017-07-06 16:24:33 -07:00
Kconfig.debug Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2017-02-22 10:20:04 -08:00
Makefile s390: add assembler include path for vx-insn.h 2016-09-06 11:00:04 +02:00