Re: [Qemu-devel] [PATCH 9/9] qemu/kvm: kvm hyper-v based guest crash event handling

2015-07-02 Thread Paolo Bonzini
On 02/07/2015 15:19, Andrey Smetanin wrote: >>> > > +if (has_msr_hv_crash) { >>> > > +env->msr_hv_crash_ctl = HV_X64_MSR_CRASH_CTL_NOTIFY; >> > >> > The value is always host-defined, so I think it doesn't need a field in >> > CPUX86State. On the other hand, this: > Kernel just w

Re: [Qemu-devel] [PATCH 9/9] qemu/kvm: kvm hyper-v based guest crash event handling

2015-07-02 Thread Andrey Smetanin
On Wed, 2015-07-01 at 17:07 +0200, Paolo Bonzini wrote: > > On 30/06/2015 13:33, Denis V. Lunev wrote: > > > > +static int kvm_arch_handle_hv_crash(CPUState *cs) > > +{ > > +X86CPU *cpu = X86_CPU(cs); > > +CPUX86State *env = &cpu->env; > > + > > +/* Mark that Hyper-v guest crash occur

Re: [Qemu-devel] [PATCH 9/9] qemu/kvm: kvm hyper-v based guest crash event handling

2015-07-01 Thread Paolo Bonzini
On 30/06/2015 13:33, Denis V. Lunev wrote: > > +static int kvm_arch_handle_hv_crash(CPUState *cs) > +{ > +X86CPU *cpu = X86_CPU(cs); > +CPUX86State *env = &cpu->env; > + > +/* Mark that Hyper-v guest crash occurred */ > +env->hv_crash_occurred = 1; This need not be a hv crash.

[Qemu-devel] [PATCH 9/9] qemu/kvm: kvm hyper-v based guest crash event handling

2015-06-30 Thread Denis V. Lunev
From: Andrey Smetanin 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 HV_X64_MSR_CRASH_P0-P4, HV_X64_MSR_CRASH_CTL