KVM: s390: vsie: gmap_table_walk() simplifications
authorDavid Hildenbrand <david@redhat.com>
Fri, 3 Apr 2020 15:30:50 +0000 (17:30 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 20 Apr 2020 09:33:31 +0000 (11:33 +0200)
commit62cf666e4eb8c00dee69bed505db60bf8c3fecf0
tree981661622660524d5ac26ed985f90ed03569d33f
parentd075fc3154be9de3b00b7bba2fb6009fe8ab611a
KVM: s390: vsie: gmap_table_walk() simplifications

Let's use asce_type where applicable. Also, simplify our sanity check for
valid table levels and convert it into a WARN_ON_ONCE(). Check if we even
have a valid gmap shadow as the very first step.

Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20200403153050.20569-6-david@redhat.com
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/mm/gmap.c