diff options
Diffstat (limited to 'Documentation/virtual/kvm/api.txt')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index f6ec3a92e621..a46a416810fb 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -1997,6 +1997,39 @@ return the hash table order in the parameter. (If the guest is using | |||
1997 | the virtualized real-mode area (VRMA) facility, the kernel will | 1997 | the virtualized real-mode area (VRMA) facility, the kernel will |
1998 | re-create the VMRA HPTEs on the next KVM_RUN of any vcpu.) | 1998 | re-create the VMRA HPTEs on the next KVM_RUN of any vcpu.) |
1999 | 1999 | ||
2000 | 4.77 KVM_S390_INTERRUPT | ||
2001 | |||
2002 | Capability: basic | ||
2003 | Architectures: s390 | ||
2004 | Type: vm ioctl, vcpu ioctl | ||
2005 | Parameters: struct kvm_s390_interrupt (in) | ||
2006 | Returns: 0 on success, -1 on error | ||
2007 | |||
2008 | Allows to inject an interrupt to the guest. Interrupts can be floating | ||
2009 | (vm ioctl) or per cpu (vcpu ioctl), depending on the interrupt type. | ||
2010 | |||
2011 | Interrupt parameters are passed via kvm_s390_interrupt: | ||
2012 | |||
2013 | struct kvm_s390_interrupt { | ||
2014 | __u32 type; | ||
2015 | __u32 parm; | ||
2016 | __u64 parm64; | ||
2017 | }; | ||
2018 | |||
2019 | type can be one of the following: | ||
2020 | |||
2021 | KVM_S390_SIGP_STOP (vcpu) - sigp restart | ||
2022 | KVM_S390_PROGRAM_INT (vcpu) - program check; code in parm | ||
2023 | KVM_S390_SIGP_SET_PREFIX (vcpu) - sigp set prefix; prefix address in parm | ||
2024 | KVM_S390_RESTART (vcpu) - restart | ||
2025 | KVM_S390_INT_VIRTIO (vm) - virtio external interrupt; external interrupt | ||
2026 | parameters in parm and parm64 | ||
2027 | KVM_S390_INT_SERVICE (vm) - sclp external interrupt; sclp parameter in parm | ||
2028 | KVM_S390_INT_EMERGENCY (vcpu) - sigp emergency; source cpu in parm | ||
2029 | KVM_S390_INT_EXTERNAL_CALL (vcpu) - sigp external call; source cpu in parm | ||
2030 | |||
2031 | Note that the vcpu ioctl is asynchronous to vcpu execution. | ||
2032 | |||
2000 | 2033 | ||
2001 | 5. The kvm_run structure | 2034 | 5. The kvm_run structure |
2002 | ------------------------ | 2035 | ------------------------ |