]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: simplify in-kernel program irq injection
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 20 Nov 2014 12:49:32 +0000 (13:49 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 13 Oct 2015 13:50:34 +0000 (15:50 +0200)
commitcd98286e552f8bae0e220afcfa31418cae70d4f8
tree8d25fc3ce831d7cea11af5d8e73f7ebc94eec258
parentfcd4feaf0b4a722fd91fa1bd206c22b1cb2ffaf0
KVM: s390: simplify in-kernel program irq injection

The main reason to keep program injection in kernel separated until now
was that we were able to do some checking, if really only the owning
thread injects program interrupts (via waitqueue_active(li->wq)).

This BUG_ON was never triggered and the chances of really hitting it, if
another thread injected a program irq to another vcpu, were very small.

Let's drop this check and turn kvm_s390_inject_program_int() and
kvm_s390_inject_prog_irq() into simple inline functions that makes use of
kvm_s390_inject_vcpu().

__must_check can be dropped as they are implicitely given by
kvm_s390_inject_vcpu(), to avoid ugly long function prototypes.

Reviewed-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.h