]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit - arch/s390/kvm/interrupt.c
KVM: s390: add functions to (un)register GISC with GISA
authorMichael Mueller <mimu@linux.ibm.com>
Thu, 31 Jan 2019 08:52:42 +0000 (09:52 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 5 Feb 2019 13:29:23 +0000 (14:29 +0100)
commit6cff2e1046015f2729f6cb68be1c999c4a9b259f
treea250331ec804ff53be8eb689b7ff027370deb665
parent25c84dbaec6a5079ab64cf8b633ec811f8e43fdd
KVM: s390: add functions to (un)register GISC with GISA

Add the Interruption Alert Mask (IAM) to the architecture specific
kvm struct. This mask in the GISA is used to define for which ISC
a GIB alert will be issued.

The functions kvm_s390_gisc_register() and kvm_s390_gisc_unregister()
are used to (un)register a GISC (guest ISC) with a virtual machine and
its GISA.

Upon successful completion, kvm_s390_gisc_register() returns the
ISC to be used for GIB alert interruptions. A negative return code
indicates an error during registration.

Theses functions will be used by other adapter types like AP and PCI to
request pass-through interruption support.

Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
Acked-by: Pierre Morel <pmorel@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190131085247.13826-12-mimu@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/interrupt.c