]> git.proxmox.com Git - pve-qemu.git/blob - 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
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Gerd Hoffmann <kraxel@redhat.com>
3 Date: Tue, 9 May 2017 12:48:39 +0200
4 Subject: [PATCH] vga: fix display update region calculation
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 vga display update mis-calculated the region for the dirty bitmap
10 snapshot in case the scanlines are padded. This can triggere an
11 assert in cpu_physical_memory_snapshot_get_dirty().
12
13 Fixes: fec5e8c92becad223df9d972770522f64aafdb72
14 Reported-by: Kevin Wolf <kwolf@redhat.com>
15 Reported-by: 李强 <liqiang6-s@360.cn>
16 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
17 Message-id: 20170509104839.19415-1-kraxel@redhat.com
18 ---
19 hw/display/vga.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 diff --git a/hw/display/vga.c b/hw/display/vga.c
23 index 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 --
36 2.11.0
37