OSDN Git Service

migration: implementation of background snapshot thread
authorAndrey Gruzdev <andrey.gruzdev@virtuozzo.com>
Fri, 29 Jan 2021 10:14:06 +0000 (13:14 +0300)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 8 Feb 2021 11:19:51 +0000 (11:19 +0000)
commit8518278a6af589ccc401f06e35f171b1e6fae800
treeb4875300b2f5d8595f56e9e4a0803f6dab5aa4f8
parent278e2f551a095b234de74dca9c214d5502a1f72c
migration: implementation of background snapshot thread

Introducing implementation of 'background' snapshot thread
which in overall follows the logic of precopy migration
while internally utilizes completely different mechanism
to 'freeze' vmstate at the start of snapshot creation.

This mechanism is based on userfault_fd with wr-protection
support and is Linux-specific.

Signed-off-by: Andrey Gruzdev <andrey.gruzdev@virtuozzo.com>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20210129101407.103458-5-andrey.gruzdev@virtuozzo.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c
migration/migration.h
migration/savevm.c
migration/savevm.h