vmm: Wire postcopy live migration from source VM

Wire up the source side of postcopy migration over TCP. When
`mode=postcopy` is requested on vm.send-migration, the source skips
the pre-copy dirty-tracking loop and lets the destination resume early,
then serves guest pages on demand over a dedicated connection.

Signed-off-by: Sebastien Boeuf <sboeuf@meta.com>
Assisted-by: Claude:claude-opus-4-7
This commit is contained in:
Sebastien Boeuf
2026-05-29 05:57:12 -07:00
parent 60398f11ff
commit 80958acdab
4 changed files with 257 additions and 6 deletions

View File

@@ -364,6 +364,9 @@ migration process. Via the API or `ch-remote`, you may specify:
The number of parallel TCP connections to use for migration.
Must be between `1` and `128`. Defaults to `1`.
Multiple connections are not supported with local UNIX-socket migration.
- `memory_mode <precopy|postcopy>`: \
Memory transfer mode. `postcopy` resumes the destination first and faults
guest pages in on demand over a dedicated connection. Defaults to `precopy`.
## Version Compatibility