David Hildenbrand 7cb70266b0 s390/mm: optimize set_guest_storage_key()
We already optimize get_guest_storage_key() to assume that if we don't have
a PTE table and don't have a huge page mapped that the storage key is 0.

Similarly, optimize set_guest_storage_key() to simply do nothing in case
the key to set is 0.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20210909162248.14969-9-david@redhat.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2021-10-25 09:20:38 +02:00
..
2021-09-03 15:33:47 -07:00
2021-09-15 14:29:21 +02:00
2021-08-05 14:10:53 +02:00
2021-09-08 15:32:35 -07:00
2021-07-30 17:09:23 +02:00
2021-07-27 09:39:19 +02:00
2021-09-15 14:29:21 +02:00
2021-09-15 14:29:21 +02:00