cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
e96cb2
From 1dfb069237e2ddf979407841a2907cd332017924 Mon Sep 17 00:00:00 2001
e96cb2
From: Gerd Hoffmann <kraxel@redhat.com>
e96cb2
Date: Fri, 29 Apr 2016 07:02:50 +0200
e96cb2
Subject: [PATCH 5/6] vga: update vga register setup on vbe changes
e96cb2
e96cb2
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
e96cb2
Message-id: <1461913371-3145-6-git-send-email-kraxel@redhat.com>
e96cb2
Patchwork-id: 70305
e96cb2
O-Subject: [virt-devel] [RHEL-7.2.z qemu-kvm PATCH 5/6] vga: update vga register setup on vbe changes
e96cb2
Bugzilla: 1331412
e96cb2
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
e96cb2
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
e96cb2
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
e96cb2
e96cb2
Call the new vbe_update_vgaregs() function on vbe configuration
e96cb2
changes, to make sure vga registers are up-to-date.
e96cb2
e96cb2
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
e96cb2
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
e96cb2
---
e96cb2
 hw/display/vga.c | 1 +
e96cb2
 1 file changed, 1 insertion(+)
e96cb2
e96cb2
diff --git a/hw/display/vga.c b/hw/display/vga.c
e96cb2
index 4cc0df5..ee3c0c0 100644
e96cb2
--- a/hw/display/vga.c
e96cb2
+++ b/hw/display/vga.c
e96cb2
@@ -790,6 +790,7 @@ void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val)
e96cb2
         case VBE_DISPI_INDEX_Y_OFFSET:
e96cb2
             s->vbe_regs[s->vbe_index] = val;
e96cb2
             vbe_fixup_regs(s);
e96cb2
+            vbe_update_vgaregs(s);
e96cb2
             break;
e96cb2
         case VBE_DISPI_INDEX_BANK:
e96cb2
             val &= s->vbe_bank_mask;
e96cb2
-- 
e96cb2
1.8.3.1
e96cb2