Skip to content

Commit

Permalink
notdirty_write check for addr_write in snapshot case
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippTakacs committed Oct 22, 2024
1 parent 149f17c commit 2717b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qemu/accel/tcg/cputlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ static void notdirty_write(CPUState *cpu, vaddr mem_vaddr, unsigned size,
// - have memory hooks installed
// - or doing snapshot
// , then never clean the tlb
if (!(!mr || mr->priority < cpu->uc->snapshot_level) &&
if (!(!mr || (tlbe->addr_write != -1 && mr->priority < cpu->uc->snapshot_level)) &&
!(tlbe->addr_code != -1) &&
!uc_mem_hook_installed(cpu->uc, tlbe->paddr | (mem_vaddr & ~TARGET_PAGE_MASK))) {
tlb_set_dirty(cpu, mem_vaddr);
Expand Down

0 comments on commit 2717b79

Please sign in to comment.