diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-05-09 12:48:39 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-05-11 09:50:32 +0200 |
commit | bfc56535f793c557aa754c50213fc5f882e6482d (patch) | |
tree | 20827f9ca400d50fdfd0e966596dd46a53da3162 /hw/display/vga.c | |
parent | ca7f544123a8cf80524cdb7a4ffc369a660b0c17 (diff) | |
download | qemu-bfc56535f793c557aa754c50213fc5f882e6482d.zip qemu-bfc56535f793c557aa754c50213fc5f882e6482d.tar.gz qemu-bfc56535f793c557aa754c50213fc5f882e6482d.tar.bz2 |
vga: fix display update region calculation
vga display update mis-calculated the region for the dirty bitmap
snapshot in case the scanlines are padded. This can triggere an
assert in cpu_physical_memory_snapshot_get_dirty().
Fixes: fec5e8c92becad223df9d972770522f64aafdb72
Reported-by: Kevin Wolf <kwolf@redhat.com>
Reported-by: 李强 <liqiang6-s@360.cn>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170509104839.19415-1-kraxel@redhat.com
Diffstat (limited to 'hw/display/vga.c')
-rw-r--r-- | hw/display/vga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vga.c b/hw/display/vga.c index b2516c8..dcc95f8 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -1630,7 +1630,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update) if (!full_update) { vga_sync_dirty_bitmap(s); snap = memory_region_snapshot_and_clear_dirty(&s->vram, addr1, - bwidth * height, + line_offset * height, DIRTY_MEMORY_VGA); } |