Re: [PATCH v1] KVM: s390: use switch vs jump table in interrupt.c

Cornelia Huck
2018-02-06T14:29:43Z

On Tue, 6 Feb 2018 15:17:43 +0100
David Hildenbrand <david@redhat.com> wrote:

> Just like for the interception handlers, let's also use a switch-case
> in our interrupt delivery code.

Amusingly, we did have a switch/case in the past :)

Nice that we can get rid of the I/O interrupt special casing.

>
> Signed-off-by: David Hildenbrand <david@redhat.com>
> ---
> arch/s390/kvm/interrupt.c | 84 ++++++++++++++++++++++++++++-------------------
> 1 file changed, 50 insertions(+), 34 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@redhat.com>