]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/mm: set and get guest storage key mmap locking
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 8 Mar 2016 10:53:35 +0000 (11:53 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:27 +0000 (12:07 +0200)
commitd3ed1ceeace311af9973d17a07a114bfaf0ca1b1
tree1e9a353c769d89bf8eee9489f931869dcaf0651a
parentc427c42cd612719e8fb8b5891cc9761e7770024e
s390/mm: set and get guest storage key mmap locking

Move the mmap semaphore locking out of set_guest_storage_key
and get_guest_storage_key. This makes the two functions more
like the other ptep_xxx operations and allows to avoid repeated
semaphore operations if multiple keys are read or written.

Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/mm/pgtable.c