KVM: s390: use switch vs jump table in priv.c
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 8 Apr 2016 15:52:39 +0000 (17:52 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 14 Feb 2018 13:53:43 +0000 (13:53 +0000)
commit6db4263fec9e550e0cdaed732f4af77a44c10f5f
tree9fcaced91f8cf6d960154d04e69e5ed9b7fe00cf
parentf315104ad8b0c32be13eac628569ae707c332cb5
KVM: s390: use switch vs jump table in priv.c

Instead of having huge jump tables for function selection,
let's use normal switch/case statements for the instruction
handlers in priv.c

This allows the compiler to make the right decision depending
on the situation (e.g. avoid jump-tables for thunks).

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/priv.c