unicorn/qemu/include/exec
Paolo Bonzini e3d1cef8fb
memory: prepare for multiple bits in the dirty log mask
When the dirty log mask will also cover other bits than DIRTY_MEMORY_VGA,
some listeners may be interested in the overall zero/non-zero value of
the dirty log mask; others may be interested in the value of single bits.

For this reason, always call log_start/log_stop if bits have respectively
appeared or disappeared, and pass the old and new values of the dirty log
mask so that listeners can distinguish the kinds of change.

For example, KVM checks if dirty logging used to be completely disabled
(in log_start) or is now completely disabled (in log_stop). On the
other hand, Xen has to check manually if DIRTY_MEMORY_VGA changed,
since that is the only bit it cares about.

Backports commit b2dfd71c4843a762f2befe702adb249cf55baf66 from qemu
2018-02-13 08:52:23 -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 exec: make iotlb RCU-friendly 2018-02-12 15:20:39 -05:00
exec-all.h Add MemTxAttrs to the IOTLB 2018-02-12 18:38:38 -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: prepare for multiple bits in the dirty log mask 2018-02-13 08:52:23 -05:00
ram_addr.h we dont need to handle VGA & Migration memories 2017-01-20 17:03:39 +08:00