background snapshot
Get series with b4
b4 am [email protected]Versions newest first
- v0 Latest4 patches 20 repliesIn review
Patches in v0 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | bitops: add some atomic versions of bitmap operationsinclude/ | +25 | 0 replies | |
| 2/4 | migration: add background snapshot capabilitymigration/ migration/ qapi/ | +42 | 1 reply | |
| 3/4 | migration: add background snapshotinclude/ include/ migration/ +4 more | +698 | 9 replies | |
| 4/4 | background snapshot: add trace events for page fault processingmigration/ migration/ | +6 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Peter Xu |
|---|---|
| 1/4 | R-b |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v0 0/4] background snapshot
Currently where is no way to make a vm snapshot without pausing a vm for the whole time until the snapshot is done. So, the problem is the vm downtime on snapshoting. The downtime value depends on the vmstate size, the major part of which is RAM and the disk performance which is used for the snapshot saving.
The series propose a way to reduce the vm snapshot downtime. This is done by saving RAM, the major part of vmstate, in the background when the vm is running.
The background snapshot uses linux UFFD write-protected mode for memory page access intercepting. UFFD write-protected mode was added to the linux v5.7. If UFFD write-protected mode isn't available the background snapshot rejects to run.
How to use:
1. enable background snapshot capability
virsh qemu-monitor-command vm --hmp migrate_set_capability background-snapshot on
2. stop the vm
virsh qemu-monitor-command vm --hmp stop
3. Start the external migration to a file
virsh qemu-monitor-command cent78-bs --hmp migrate exec:'cat > ./vm_state'
4. Wait for the migration finish and check that the migration has completed state.
Denis Plotnikov (4):
bitops: add some atomic versions of bitmap operations
migration: add background snapshot capability
migration: add background snapshot
background snapshot: add trace events for page fault processing
qapi/migration.json | 7 +- include/exec/ramblock.h | 8 + include/exec/ramlist.h | 2 + include/qemu/bitops.h | 25 ++ migration/migration.h | 1 + migration/ram.h | 19 +- migration/savevm.h | 3 + migration/migration.c | 142 +++++++++- migration/ram.c | 582 ++++++++++++++++++++++++++++++++++++++-- migration/savevm.c | 1 - migration/trace-events | 2 + 11 files changed, 771 insertions(+), 21 deletions(-)
Signature · 1 line
2.17.0