]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
vga: add sr_vbe register set
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 17 May 2016 08:54:54 +0000 (10:54 +0200)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 24 May 2016 10:29:23 +0000 (11:29 +0100)
commit47c1b6fc08f45e45d6cf971bdc143074ae1d64a7
treede9dd2ce9be4efcee25d6046f46404958d9b454b
parent63d6eab2fda43e9cfdaa33e9ffde755da8e98e32
vga: add sr_vbe register set

Commit "fd3c136 vga: make sure vga register setup for vbe stays intact
(CVE-2016-3712)." causes a regression.  The win7 installer is unhappy
because it can't freely modify vga registers any more while in vbe mode.

This patch introduces a new sr_vbe register set.  The vbe_update_vgaregs
will fill sr_vbe[] instead of sr[].  Normal vga register reads and
writes go to sr[].  Any sr register read access happens through a new
sr() helper function which will read from sr_vbe[] with vbe active and
from sr[] otherwise.

This way we can allow guests update sr[] registers as they want, without
allowing them disrupt vbe video modes that way.

upstream-commit-id: 94ef4f337fb614f18b765a8e0e878a4c23cdedcd

Cc: qemu-stable@nongnu.org
Reported-by: Thomas Lamprecht <thomas@lamprecht.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1463475294-14119-1-git-send-email-kraxel@redhat.com
hw/display/vga.c
hw/display/vga_int.h