Add support for injecting machine checks (only repressible conditions for now). This is a bit more involved than I/O interrupts, for these reasons: - Machine checks come in both floating and cpu varieties. - We don't have a bit for machine checks enabling, but have to use a roundabout approach with trapping PSW changing instructions and watching for opened machine checks.
Showing the changes to include/uapi/linux (1 of 8 files). Show all
Unified · Split
| @@ -397,6 +397,7 @@ struct kvm_s390_psw { · 396 unmodified lines | |||
| 397 | #define KVM_S390_PROGRAM_INT 0xfffe0001u | 397 | #define KVM_S390_PROGRAM_INT 0xfffe0001u |
| 398 | #define KVM_S390_SIGP_SET_PREFIX 0xfffe0002u | 398 | #define KVM_S390_SIGP_SET_PREFIX 0xfffe0002u |
| 399 | #define KVM_S390_RESTART 0xfffe0003u | 399 | #define KVM_S390_RESTART 0xfffe0003u |
| 400 | #define KVM_S390_MCHK 0xfffe1000u | ||
| 400 | #define KVM_S390_INT_VIRTIO 0xffff2603u | 401 | #define KVM_S390_INT_VIRTIO 0xffff2603u |
| 401 | #define KVM_S390_INT_SERVICE 0xffff2401u | 402 | #define KVM_S390_INT_SERVICE 0xffff2401u |
| 402 | #define KVM_S390_INT_EMERGENCY 0xffff1201u | 403 | #define KVM_S390_INT_EMERGENCY 0xffff1201u |