diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2017-07-06 10:12:58 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-07-13 11:28:29 +0200 |
commit | 97ca7bfc19605bc08e9183441b8b8545e84032d6 (patch) | |
tree | 0fc4bc83a0028e464791c35709aabc36eb3feb21 /security/Kconfig | |
parent | 2daace78a8c94e2cd20164b8efc18171c56e92ec (diff) | |
download | linux-97ca7bfc19605bc08e9183441b8b8545e84032d6.tar.gz linux-97ca7bfc19605bc08e9183441b8b8545e84032d6.tar.bz2 linux-97ca7bfc19605bc08e9183441b8b8545e84032d6.zip |
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>
Diffstat (limited to 'security/Kconfig')
0 files changed, 0 insertions, 0 deletions