xemu/hw/virtio
Paolo Bonzini b2dfd71c48 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.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-06-05 17:09:59 +02:00
..
dataplane memory: differentiate memory_region_is_logging and memory_region_get_dirty_log_mask 2015-06-05 17:09:58 +02:00
Makefile.objs dataplane: endianness-aware accesses 2015-02-16 15:07:16 +00:00
vhost-backend.c vhost: Remove superfluous '\n' around error_report() 2015-03-10 08:15:33 +03:00
vhost-user.c vhost-user: add multi queue support 2015-06-01 14:18:55 +02:00
vhost.c memory: prepare for multiple bits in the dirty log mask 2015-06-05 17:09:59 +02:00
virtio-balloon.c virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
virtio-bus.c virtio: device_plugged() can fail 2015-05-31 16:44:12 +02:00
virtio-mmio.c virtio-mmio: ioeventfd support 2015-06-01 14:18:55 +02:00
virtio-pci.c virtio-pci: don't try to mask or unmask vqs without notifiers 2015-06-03 18:19:15 +02:00
virtio-pci.h virtio: move host_features 2015-05-31 16:27:18 +02:00
virtio-rng.c virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
virtio.c virtio: 64bit features fixups. 2015-06-03 18:19:16 +02:00