]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/extra/0010-vga-fix-display-update-region-calculation.patch
bump version to 2.9.1-9
[pve-qemu.git] / debian / patches / extra / 0010-vga-fix-display-update-region-calculation.patch
CommitLineData
3dcc8d3b 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
ddbcf45e
WB
2From: Gerd Hoffmann <kraxel@redhat.com>
3Date: Tue, 9 May 2017 12:48:39 +0200
3dcc8d3b 4Subject: [PATCH] vga: fix display update region calculation
ddbcf45e
WB
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9vga display update mis-calculated the region for the dirty bitmap
10snapshot in case the scanlines are padded. This can triggere an
11assert in cpu_physical_memory_snapshot_get_dirty().
12
13Fixes: fec5e8c92becad223df9d972770522f64aafdb72
14Reported-by: Kevin Wolf <kwolf@redhat.com>
15Reported-by: 李强 <liqiang6-s@360.cn>
16Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
17Message-id: 20170509104839.19415-1-kraxel@redhat.com
18---
19 hw/display/vga.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/hw/display/vga.c b/hw/display/vga.c
23index b2516c8d21..dcc95f88e2 100644
24--- a/hw/display/vga.c
25+++ b/hw/display/vga.c
26@@ -1630,7 +1630,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
27 if (!full_update) {
28 vga_sync_dirty_bitmap(s);
29 snap = memory_region_snapshot_and_clear_dirty(&s->vram, addr1,
30- bwidth * height,
31+ line_offset * height,
32 DIRTY_MEMORY_VGA);
33 }
34
35--
362.11.0
37