]> git.ipfire.org Git - thirdparty/qemu.git/commit - xen-hvm.c
memory: differentiate memory_region_is_logging and memory_region_get_dirty_log_mask
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Mar 2015 09:50:57 +0000 (10:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:09:58 +0000 (17:09 +0200)
commit2d1a35bef0ed96b3f23535e459c552414ccdbafd
tree2911512c3fc1e768a4d9799b84c1d6c89ad470f9
parent5299c0f2cf951c23ec681ff87e455d1cf4ec537b
memory: differentiate memory_region_is_logging and memory_region_get_dirty_log_mask

For now memory regions only track DIRTY_MEMORY_VGA individually, but
this will change soon.  To support this, split memory_region_is_logging
in two functions: one that returns a given bit from dirty_log_mask,
and one that returns the entire mask.  memory_region_is_logging gets an
extra parameter so that the compiler flags misuse.

While VGA-specific users (including the Xen listener!) will want to keep
checking that bit, KVM and vhost check for "any bit except migration"
(because migration is handled via the global start/stop listener
callbacks).

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/display/vmware_vga.c
hw/virtio/dataplane/vring.c
hw/virtio/vhost.c
include/exec/memory.h
kvm-all.c
memory.c
xen-hvm.c