KVM: s390: Support for I/O interrupts.
Add support for handling I/O interrupts (standard, subchannel-related ones and rudimentary adapter interrupts). The subchannel-identifying parameters are encoded into the interrupt type. I/O interrupts are floating, so they can't be injected on a specific vcpu. Reviewed-by: Alexander Graf <agraf@suse.de> Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:

committed by
Marcelo Tosatti

parent
b1c571a50d
commit
d8346b7d9b
@@ -401,6 +401,15 @@ struct kvm_s390_psw {
|
||||
#define KVM_S390_INT_SERVICE 0xffff2401u
|
||||
#define KVM_S390_INT_EMERGENCY 0xffff1201u
|
||||
#define KVM_S390_INT_EXTERNAL_CALL 0xffff1202u
|
||||
/* Anything below 0xfffe0000u is taken by INT_IO */
|
||||
#define KVM_S390_INT_IO(ai,cssid,ssid,schid) \
|
||||
(((schid)) | \
|
||||
((ssid) << 16) | \
|
||||
((cssid) << 18) | \
|
||||
((ai) << 26))
|
||||
#define KVM_S390_INT_IO_MIN 0x00000000u
|
||||
#define KVM_S390_INT_IO_MAX 0xfffdffffu
|
||||
|
||||
|
||||
struct kvm_s390_interrupt {
|
||||
__u32 type;
|
||||
|
Reference in New Issue
Block a user