Sending of notification is done by exiting vcpu to user space if KVM_REQ_HV_CRASH is enabled for vcpu. At exit to user space the kvm_run structure contains system_event with type KVM_SYSTEM_EVENT_CRASH to notify about guest crash occurred.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -317,6 +317,7 @@ struct kvm_run { · 316 unmodified lines | |||
| 317 | struct { | 317 | struct { |
| 318 | #define KVM_SYSTEM_EVENT_SHUTDOWN 1 | 318 | #define KVM_SYSTEM_EVENT_SHUTDOWN 1 |
| 319 | #define KVM_SYSTEM_EVENT_RESET 2 | 319 | #define KVM_SYSTEM_EVENT_RESET 2 |
| 320 | #define KVM_SYSTEM_EVENT_CRASH 3 | ||
| 320 | __u32 type; | 321 | __u32 type; |
| 321 | __u64 flags; | 322 | __u64 flags; |
| 322 | } system_event; | 323 | } system_event; |