framebuffer: check memory_region_is_logging
commitd55d42078bfb507743747b761673507b95a76620
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Mar 2015 09:46:52 +0000 (23 10:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:09:59 +0000 (5 17:09 +0200)
treebd32a470cf4103a127e081ba07e0fb864deb434a
parentb2dfd71c4843a762f2befe702adb249cf55baf66
framebuffer: check memory_region_is_logging

framebuffer.c expects DIRTY_MEMORY_VGA logging to be always on, but that
will not be the case soon.  Because framebuffer.c computes the memory
region on the fly for every update (with memory_region_find), it cannot
enable/disable logging by itself.

Instead, always treat updates as invalidations if dirty logging is
not enabled, assuming that the board will enable logging on the
RAM region that includes the framebuffer.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/display/framebuffer.c