]> git.ipfire.org Git - thirdparty/qemu.git/commit
vbe: make bochs dispi interface return the correct memory size with qxl
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 26 Aug 2014 12:16:30 +0000 (14:16 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 10 Sep 2014 14:30:58 +0000 (09:30 -0500)
commitc5042f04f74f8ca129a718702eab6f1168539d09
tree9c33e63076946bd9407e288abaf4987cdc8ae970
parentcf29a8839115c99eb4050cea31d71ee1cb96ad2a
vbe: make bochs dispi interface return the correct memory size with qxl

VgaState->vram_size is the size of the pci bar.  In case of qxl not the
whole pci bar can be used as vga framebuffer.  Add a new variable
vbe_size to handle that case.  By default (if unset) it equals
vram_size, but qxl can set vbe_size to something else.

This makes sure VBE_DISPI_INDEX_VIDEO_MEMORY_64K returns correct results
and sanity checks are done with the correct size too.

Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
(cherry picked from commit 54a85d462447c1cb8a1638578a7fd086350b4d2d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/display/qxl.c
hw/display/vga.c
hw/display/vga_int.h