aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/ioapic_common.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2024-03-12 21:14:58 +0100
committerPeter Xu <peterx@redhat.com>2024-03-12 17:39:40 -0400
commit03bfc2188f061aa8381403f9280555f4e22c35a2 (patch)
tree74e31766d70294b70eb5028ac7d7c844ee49b973 /hw/intc/ioapic_common.c
parent86a9ae80cc5fa2a989f253fca5e70f61eb4269e2 (diff)
downloadqemu-03bfc2188f061aa8381403f9280555f4e22c35a2.zip
qemu-03bfc2188f061aa8381403f9280555f4e22c35a2.tar.gz
qemu-03bfc2188f061aa8381403f9280555f4e22c35a2.tar.bz2
physmem: Fix migration dirty bitmap coherency with TCG memory access
The fastpath in cpu_physical_memory_sync_dirty_bitmap() to test large aligned ranges forgot to bring the TCG TLB up to date after clearing some of the dirty memory bitmap bits. This can result in stores though the TCG TLB not setting the dirty memory bitmap and ultimately causes memory corruption / lost updates during migration from a TCG host. Fix this by calling cpu_physical_memory_dirty_bits_cleared() when dirty bits have been cleared. Fixes: aa8dc044772 ("migration: synchronize memory bitmap 64bits at a time") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Tested-by: Thomas Huth <thuth@redhat.com> Message-ID: <20240219061731.232570-1-npiggin@gmail.com> [PMD: Split patch in 2: part 2/2, slightly adapt description] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Link: https://lore.kernel.org/r/20240312201458.79532-4-philmd@linaro.org Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'hw/intc/ioapic_common.c')
0 files changed, 0 insertions, 0 deletions