unicorn icon indicating copy to clipboard operation
unicorn copied to clipboard

Optimize Notdirty write

Open PhilippTakacs opened this issue 1 year ago • 0 comments

This enables notdirty_write when used with snapshots. To do this the tlb is cleared on a snapshot and the priority of the mr is compared with the snapshot level.

It also fixes a bug when the mmu doesn't map 1:1. Before this the memory region was looked up with the vaddr, but memory regions are mapped at the paddr.

It's currently a draft because I also want to improve the MEM_HOOK check. As you already noticed in #2029 there are some hooks missing in the check. I would also include a range check for the hooks so only skip the optimization when there is a hook on this address.

PhilippTakacs avatar Oct 14 '24 07:10 PhilippTakacs