From: Mihai Donțu <mdontu@xxxxxxxxxxxxxxx> This action is used in extreme cases such as blocking the spread of malware as fast as possible. Signed-off-by: Mihai Donțu <mdontu@xxxxxxxxxxxxxxx> Signed-off-by: Adalbert Lazăr <alazar@xxxxxxxxxxxxxxx> --- virt/kvm/introspection/kvmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virt/kvm/introspection/kvmi.c b/virt/kvm/introspection/kvmi.c index 3d26a7319fb7..d25b83dce8ed 100644 --- a/virt/kvm/introspection/kvmi.c +++ b/virt/kvm/introspection/kvmi.c @@ -751,6 +751,10 @@ void kvmi_handle_common_event_actions(struct kvm_vcpu *vcpu, u32 action) struct kvm *kvm = vcpu->kvm; switch (action) { + case KVMI_EVENT_ACTION_CRASH: + vcpu->run->exit_reason = KVM_EXIT_SHUTDOWN; + break; + default: kvmi_handle_unsupported_event_action(kvm); }