Re: [Qemu-devel] [PATCH] Fix the vm state after vm migration when vm panic

2017-03-06 Thread hangaohuai
debugging the migration step with the same steps. with libvirt version:1.3.4 qemu version:2.8.50 I found qemu held the right state. But libvirt will send cont at the end of the migration, it will rewrite the vm's state. after migration HOSTA | HOSTB virs

Re: [Qemu-devel] [PATCH] Fix the vm state after vm migration when vm panic

2017-03-06 Thread Paolo Bonzini
On 06/03/2017 15:05, hangaohuai wrote: > Bug steps: > 1. windows VM with pvpanic device:in xml > 2. inject the panic in windows, the vm state is paused (guest-panicked) > 3. migrate the vm to other host, vm state is running > > Check the vmstate before runstate_set(RUN_STATE_RUNNING) What's the

[Qemu-devel] [PATCH] Fix the vm state after vm migration when vm panic

2017-03-06 Thread hangaohuai
Bug steps: 1. windows VM with pvpanic device:in xml 2. inject the panic in windows, the vm state is paused (guest-panicked) 3. migrate the vm to other host, vm state is running Check the vmstate before runstate_set(RUN_STATE_RUNNING) Signed-off-by: hangaohuai --- cpus.c | 3 +++