Skip to content

tcg: fix dirty bitmap race with MTTCG

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4memory: remove memory_region_test_and_clear_dirtyinclude/exec/memory.h memory.c+3 -291 reply
2/4memory: hide memory_region_sync_dirty_bitmap behind DirtyBitmapSnapshothw/display/cg3.c hw/display/exynos4210_fimd.c hw/display/framebuffer.c +6 more+20 -431 reply
3/4memory: introduce memory_global_after_dirty_log_syncexec.c include/exec/memory.h memory.c +1 more+53 -11 reply
4/4memory: unify loops to sync dirty log bitmapmemory.c+2 -211 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] tcg: fix dirty bitmap race with MTTCG

This is a race that can happen when migrating TCG guests under load. It was introduced by the change to run vCPUs outside the big QEMU lock.

Paolo Bonzini (4):
memory: remove memory_region_test_and_clear_dirty
memory: hide memory_region_sync_dirty_bitmap behind
DirtyBitmapSnapshot
memory: introduce memory_global_after_dirty_log_sync
memory: unify loops to sync dirty log bitmap

 exec.c                       | 31 ++++++++++++++++++
 hw/display/cg3.c             |  1 -
 hw/display/exynos4210_fimd.c |  1 -
 hw/display/framebuffer.c     |  1 -
 hw/display/g364fb.c          |  1 -
 hw/display/sm501.c           |  1 -
 hw/display/tcx.c             |  2 --
 hw/display/vga.c             |  6 ----
 include/exec/memory.h        | 47 +++++++++------------------
 memory.c                     | 76 +++++++++++++++++---------------------------
 migration/ram.c              |  1 +
 11 files changed, 76 insertions(+), 92 deletions(-)
Signature · 1 line
2.14.3