diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2012-12-20 09:32:08 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-01-07 16:53:40 -0500 |
commit | d8346b7d9bab37e6cc712ff1622c65ff98bdfef8 (patch) | |
tree | 60f36ff7f61757501f3560d8860ca217d7e92640 /include/uapi/linux/kvm.h | |
parent | b1c571a50dfacf25a24c23271e9b8bf18ff6b102 (diff) |
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>
Diffstat (limited to 'include/uapi/linux/kvm.h')
-rw-r--r-- | include/uapi/linux/kvm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index e6e5d4b13708..54540bdd3340 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
@@ -401,6 +401,15 @@ struct kvm_s390_psw { | |||
401 | #define KVM_S390_INT_SERVICE 0xffff2401u | 401 | #define KVM_S390_INT_SERVICE 0xffff2401u |
402 | #define KVM_S390_INT_EMERGENCY 0xffff1201u | 402 | #define KVM_S390_INT_EMERGENCY 0xffff1201u |
403 | #define KVM_S390_INT_EXTERNAL_CALL 0xffff1202u | 403 | #define KVM_S390_INT_EXTERNAL_CALL 0xffff1202u |
404 | /* Anything below 0xfffe0000u is taken by INT_IO */ | ||
405 | #define KVM_S390_INT_IO(ai,cssid,ssid,schid) \ | ||
406 | (((schid)) | \ | ||
407 | ((ssid) << 16) | \ | ||
408 | ((cssid) << 18) | \ | ||
409 | ((ai) << 26)) | ||
410 | #define KVM_S390_INT_IO_MIN 0x00000000u | ||
411 | #define KVM_S390_INT_IO_MAX 0xfffdffffu | ||
412 | |||
404 | 413 | ||
405 | struct kvm_s390_interrupt { | 414 | struct kvm_s390_interrupt { |
406 | __u32 type; | 415 | __u32 type; |