unicorn/qemu/include/exec
Paolo Bonzini 6d509f7333
exec: only check relevant bitmaps for cleanliness
Most of the time, not all bitmaps have to be marked as dirty;
do not do anything if the interesting ones are already dirty.
Previously, any clean bitmap would have cause all the bitmaps to be
marked dirty.

In fact, unless running TCG most of the time bitmap operations need
not be done at all, because memory_region_is_logging returns zero.
In this case, skip the call to cpu_physical_memory_range_includes_clean
altogether as well.

With this patch, cpu_physical_memory_set_dirty_range is called
unconditionally, so there need not be anymore a separate call to
xen_modified_memory.

Backports commit e87f7778b64d4a6a78e16c288c7fdc6c15317d5f from qemu
2018-02-13 11:03:26 -05:00
..
address-spaces.h import 2015-08-21 15:04:50 +08:00
cpu-all.h import 2015-08-21 15:04:50 +08:00
cpu-common.h delete qemu/include/exec/poison.h 2017-01-20 13:58:50 +08:00
cpu-defs.h softmmu: support up to 12 MMU modes 2018-02-13 08:34:52 -05:00
cpu_ldst.h softmmu: support up to 12 MMU modes 2018-02-13 08:34:52 -05:00
cpu_ldst_template.h This code should now build the x86_x64-softmmu part 2. 2017-01-19 22:50:28 +11:00
cputlb.h cputlb: remove useless arguments to tlb_unprotect_code_phys, rename 2018-02-13 09:07:41 -05:00
exec-all.h exec: move functions to translate-all.h 2018-02-13 09:01:45 -05:00
gen-icount.h tcg: Change translator-side labels to a pointer 2018-02-09 14:17:56 -05:00
helper-gen.h import 2015-08-21 15:04:50 +08:00
helper-head.h import 2015-08-21 15:04:50 +08:00
helper-proto.h import 2015-08-21 15:04:50 +08:00
helper-tcg.h This code should now build the x86_x64-softmmu part 2. 2017-01-19 22:50:28 +11:00
hwaddr.h platform.h move #3 2017-01-21 00:13:21 +11:00
ioport.h import 2015-08-21 15:04:50 +08:00
memattrs.h target-arm: Add user-mode transaction attribute 2018-02-12 20:41:58 -05:00
memory-internal.h import 2015-08-21 15:04:50 +08:00
memory.h memory: track DIRTY_MEMORY_CODE in mr->dirty_log_mask 2018-02-13 08:55:42 -05:00
ram_addr.h exec: only check relevant bitmaps for cleanliness 2018-02-13 11:03:26 -05:00