migration/postcopy: Detect file system on dest host
commitae30b9b2892b85e6c3d5c0b8d1949c4d77a2954a
authorPeter Xu <peterx@redhat.com>
Wed, 19 Apr 2023 16:17:38 +0000 (19 12:17 -0400)
committerJuan Quintela <quintela@redhat.com>
Mon, 24 Apr 2023 09:29:01 +0000 (24 11:29 +0200)
tree60db95ddd208fe84abe64d1849f6f7127c3233b2
parentcb9d8b8ce1aaf38f53295fc59ec1b8b7eb4338d2
migration/postcopy: Detect file system on dest host

Postcopy requires the memory support userfaultfd to work.  Right now we
check it but it's a bit too late (when switching to postcopy migration).

Do that early right at enabling of postcopy.

Note that this is still only a best effort because ramblocks can be
dynamically created.  We can add check in hostmem creations and fail if
postcopy enabled, but maybe that's too aggressive.

Still, we have chance to fail the most obvious where we know there's an
existing unsupported ramblock.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/postcopy-ram.c