yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
34b321
From 6bf28a8a9e2e6d6505f2a906b7fc532427037c5f Mon Sep 17 00:00:00 2001
e96cb2
From: Gerd Hoffmann <kraxel@redhat.com>
34b321
Date: Thu, 28 Apr 2016 16:07:31 +0200
34b321
Subject: [PATCH 26/27] vga: update vga register setup on vbe changes
e96cb2
e96cb2
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
34b321
Message-id: <1461859652-20918-6-git-send-email-kraxel@redhat.com>
34b321
Patchwork-id: 70296
34b321
O-Subject: [virt-devel] [RHEL-7.3 qemu-kvm PATCH 5/6] vga: update vga register setup on vbe changes
34b321
Bugzilla: 1331413
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