diff options
| author | Andrey Smetanin <[email protected]> | 2015-07-03 15:01:41 +0300 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2015-07-23 08:27:06 +0200 |
| commit | 2ce7918990641b07e70e1b25752d666369e2016e (patch) | |
| tree | 03f59dec22c00e8476ab6c65443eaaf9e67d5182 /include/linux | |
| parent | e7d9513b60e87f62e41090fa3a26eca796924346 (diff) | |
kvm/x86: add sending hyper-v crash notification to user space
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.
Signed-off-by: Andrey Smetanin <[email protected]>
Signed-off-by: Denis V. Lunev <[email protected]>
Reviewed-by: Peter Hornyack <[email protected]>
CC: Paolo Bonzini <[email protected]>
CC: Gleb Natapov <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 1d917d9b7f12..51103f0feb7e 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -139,6 +139,7 @@ static inline bool is_error_page(struct page *page) #define KVM_REQ_DISABLE_IBS 24 #define KVM_REQ_APIC_PAGE_RELOAD 25 #define KVM_REQ_SMI 26 +#define KVM_REQ_HV_CRASH 27 #define KVM_USERSPACE_IRQ_SOURCE_ID 0 #define KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID 1 |