mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-25 14:05:20 +00:00
65a39f43cb
In migration, vm object is created by new_from_migration with NULL kvm clock. so vm.set_clock will not be called during vm resume. If the guest using kvm-clock, the ticks will be stopped after migration. As clock was already saved to snapshot, add a method to restore it before vm resume in migration. after that, guest's kvm-clock works well. Signed-off-by: Ren Lei <ren.lei4@zte.com.cn>