qemu-e2k/hw
Gerd Hoffmann 94ef4f337f 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.

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
2016-05-23 14:28:25 +02:00
..
9pfs 9p: drop unused declaration from coth.h 2016-05-18 15:04:27 +03:00
acpi acpi: do not use TARGET_PAGE_SIZE 2016-05-19 16:42:28 +02:00
alpha alpha: include cpu-qom.h in files that require AlphaCPU 2016-05-19 16:42:27 +02:00
arm machine: add properties to compat_props incrementaly 2016-05-20 14:28:54 -03:00
audio hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
block hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
bt qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
char hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
core machine: add properties to compat_props incrementaly 2016-05-20 14:28:54 -03:00
cpu explicitly include qom/cpu.h 2016-05-19 16:42:27 +02:00
cris
display vga: add sr_vbe register set 2016-05-23 14:28:25 +02:00
dma hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
gpio hw: clean up hw/hw.h includes 2016-05-19 16:42:30 +02:00
i2c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
i386 machine: add properties to compat_props incrementaly 2016-05-20 14:28:54 -03:00
ide atapi: Switch to byte-based block access 2016-05-12 15:22:09 +02:00
input hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
intc aspeed: include qemu/log.h 2016-05-20 13:09:22 +01:00
ipack ipack: Update e-mail address 2016-05-18 15:04:27 +03:00
ipmi
isa explicitly include qom/cpu.h 2016-05-19 16:42:27 +02:00
lm32 vl: Replace DT_NOGRAPHIC with machine option 2016-05-20 14:28:54 -03:00
m68k
mem
microblaze
mips mips: use MIPSCPU instead of CPUMIPSState 2016-05-19 16:42:27 +02:00
misc cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
moxie
net hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
nvram vl: Replace DT_NOGRAPHIC with machine option 2016-05-20 14:28:54 -03:00
openrisc
pci Fix some typos found by codespell 2016-05-18 15:04:27 +03:00
pci-bridge hw/pci-bridge: Add missing unref in case register-bus fails 2016-04-07 19:57:33 +03:00
pci-host hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
pcmcia
ppc machine: add properties to compat_props incrementaly 2016-05-20 14:28:54 -03:00
s390x machine: add properties to compat_props incrementaly 2016-05-20 14:28:54 -03:00
scsi Fix some typos found by codespell 2016-05-18 15:04:27 +03:00
sd hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
sh4 cpu: move exec-all.h inclusion out of cpu.h 2016-05-19 16:42:29 +02:00
smbios
sparc vl: Replace DT_NOGRAPHIC with machine option 2016-05-20 14:28:54 -03:00
sparc64
ssi hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
timer aspeed: include qemu/log.h 2016-05-20 13:09:22 +01:00
tpm tpm: Fix write to file descriptor function 2016-04-13 19:52:34 +03:00
tricore
unicore32
usb usb: Support compilation without poll.h 2016-05-11 10:37:39 +02:00
vfio explicitly include linux/kvm.h 2016-05-19 16:42:27 +02:00
virtio qapi: Split visit_end_struct() into pieces 2016-05-12 09:47:55 +02:00
watchdog hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
xen
xenpv
xtensa qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
Makefile.objs