KVM: s390: make kvm_s390_get_io_int() aware of GISA
authorMichael Mueller <mimu@linux.vnet.ibm.com>
Fri, 7 Jul 2017 13:27:31 +0000 (15:27 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 26 Jan 2018 13:13:55 +0000 (14:13 +0100)
commit4b35f65e67ee0e5bc4f394efa14a9fa3917cd2c1
tree70115cbdcd048413163b169c9939d3423da3e248
parent24160af6cb289ace9bde980b33d11713c8fc8192
KVM: s390: make kvm_s390_get_io_int() aware of GISA

The function returns a pending I/O interrupt with the highest
priority defined by its ISC.

Together with AIV activation, pending adapter interrupts are
managed by the GISA IPM. Thus kvm_s390_get_io_int() needs to
inspect the IPM as well when the interrupt with the highest
priority has to be identified.

In case classic and adapter interrupts with the same ISC are
pending, the classic interrupt will be returned first.

Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/interrupt.c