Re: [PATCH 10/11] qemu/kvm: kvm hyper-v based guest crash event handling

2015-06-22 Thread Paolo Bonzini
On 22/06/2015 18:05, Denis V. Lunev wrote: +void qemu_system_guest_panicked(void) +{ +qapi_event_send_guest_panicked(GUEST_PANIC_ACTION_PAUSE, error_abort); +vm_stop(RUN_STATE_GUEST_PANICKED); +} + Please call this in pvpanic.c and target-s390x/kvm.c (replacing the guest_panicked

Re: [PATCH 10/11] qemu/kvm: kvm hyper-v based guest crash event handling

2015-06-22 Thread Paolo Bonzini
Another one... On 22/06/2015 18:05, Denis V. Lunev wrote: +case KVM_SYSTEM_EVENT_CRASH: +if (run-system_event.flags KVM_SYSTEM_EVENT_FL_HV_CRASH) { +kvm_arch_handle_hv_crash(cpu); +} +

[PATCH 10/11] qemu/kvm: kvm hyper-v based guest crash event handling

2015-06-22 Thread Denis V. Lunev
From: Andrey Smetanin asmeta...@virtuozzo.com KVM Hyper-V based guests can notify hypervisor about occurred guest crash. This patch does handling of KVM crash event by sending to libvirt guest panic event that allows to gather guest crash dump by QEMU/LIBVIRT. Add support of