Skip to content

stable migration image on a stopped vm

Michael S. Tsirkin qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 6 repliesIn review
  2. v1 RFC1 patch 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6virtio-net: don't dma while vm is stoppedhw/virtio-net.c+3 -00 replies
2/6cpus: flush all requests on each vm stopcpus.c+2 -06 replies
3/6migration/savevm: no need to flush requestsmigration.c savevm.c+0 -60 replies
4/6virtio-net: stop/start bh on vm start/stophw/virtio-net.c+26 -1014 replies
5/6migration: stable ram block orderingarch_init.c cpu-common.h exec.c +1 more+61 -30 replies
6/6migration: allow rate > 4gbuffered_file.c hw/hw.h migration.c +1 more+16 -110 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchJason Wang
SeriesT-b
1/6T-b
2/6T-b T-b T-b
3/6T-b
4/6T-b T-b
5/6T-b
6/6T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCHv2 0/6] stable migration image on a stopped vm

I sent the exact same patches offline to some of the Cc'd, there's been no change but they have been tested by Jason now. I'll queue them up unless there are some comments.

What these patches do is arrive at a state where migrate to exec with vm stopped produces a stable result.

With these patches applied it's stable, under the following conditions:

1. run with -rtc clock=vm otherwise the rtc clock keeps running with vm stopped.
2. kvm clock compiled out (-kvmclock in -cpu should have same efect but does not, this is a bug, and it breaks migration between hosts with and without kvmclock support in kernel).
3. ratelimit set to a very large value (like 100g)

Michael S. Tsirkin (6):
virtio-net: don't dma while vm is stopped
cpus: flush all requests on each vm stop
migration/savevm: no need to flush requests
virtio-net: stop/start bh on vm start/stop
migration: stable ram block ordering
migration: allow rate > 4g

 arch_init.c     |   35 +++++++++++++++++++++++++++++++++++
 buffered_file.c |    9 ++++++---
 cpu-common.h    |    3 +++
 cpus.c          |    2 ++
 exec.c          |   24 ++++++++++++++++++++++--
 hw/hw.h         |    8 ++++----
 hw/virtio-net.c |   39 +++++++++++++++++++++++++++++----------
 kvm-all.c       |    2 +-
 migration.c     |    8 ++++----
 savevm.c        |    8 ++------
 10 files changed, 108 insertions(+), 30 deletions(-)
Signature · 1 line
1.7.3.2.91.g446ac