On 09/30/2016 02:15 PM, Amit Shah wrote:
Hi,
On (Thu) 29 Sep 2016 [19:06:32], Li Zhijian wrote:
Priviously, if the source and distination have different devices, source could
goto
the status "paused (postmigrate)", and the distination will exit that means no
qemu
is alive.
After this patch, at above case, source can dectect the some error early from
distination
and stop the migration, source keep in status "running".
How would incoming migrations from previous versions work?
You are right. we need to consider more.
How about that:
we need to introduce a new section type(e.g: QEMU_VM_SECTION_DEVICE_LIST).
source side:
- at the beginning of qemu_savevm_state_begin(), send
QEMU_VM_SECTION_DEVICE_LIST first
- original path
dst side:
- if we got the QEMU_VM_SECTION_DEVICE_LIST, have a check with the
devices(name,version)
- otherwise original path
Please correct me.
Thanks
Zhijian
Amit