]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: use switch vs jump table in intercept.c
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 6 Feb 2018 10:19:28 +0000 (10:19 +0000)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 14 Feb 2018 13:53:43 +0000 (13:53 +0000)
commit0ffeac938190e3ba3f72ffeed78ac7800008cf42
tree508cea52e7bec2e5b263f0e212237e52c54008c1
parentc26e78b7124932f9c0c7b266488914bde95045d0
KVM: s390: use switch vs jump table in intercept.c

Instead of having huge jump tables for function selection,
let's use normal switch/case statements for the instruction
handlers in intercept.c We can now also get rid of
intercept_handler_t.

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