KVM: s390: gaccess: simplify translation exception handling
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Fri, 29 Jul 2016 09:36:04 +0000 (11:36 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 8 Sep 2016 07:07:53 +0000 (09:07 +0200)
commitc14b88d76624e02b9895914b85b9d8b2c984563c
treefb4e1c5f6c5a807b5cb6eca870cbb9dce873f92d
parentb1ffffbd0f3bf362e578ee577437a8df5e06e495
KVM: s390: gaccess: simplify translation exception handling

The payload data for protection exceptions is a superset of the
payload of other translation exceptions. Let's set the additional
flags and use a fall through to minimize code duplication.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/gaccess.c