]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: QemuVideoDxe: filter BOCHS modes vs. available frame buffer size
authorLaszlo Ersek <lersek@redhat.com>
Mon, 3 Mar 2014 08:41:08 +0000 (08:41 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 3 Mar 2014 08:41:08 +0000 (08:41 +0000)
commitec88061ec82d3ebf6a83d562d17583b70e32ce13
tree25ba2db4871802e376605cfa3d1b7b95e44c32c7
parentcd1526101469cb639c7166c0b750c5ebb810a446
OvmfPkg: QemuVideoDxe: filter BOCHS modes vs. available frame buffer size

In the next patch we'll add many new BOCHS modes, some of which require
large frame buffers.

The size of the QXL VGA compatibility framebuffer can be changed with the

  -global qxl-vga.vgamem_mb=$NUM_MB

QEMU option.

If $NUM_MB would exceed 32, then the following two QEMU options are
necessary instead:

  -global qxl-vga.vgamem_mb=$NUM_MB         \
  -global qxl-vga.ram_size_mb=$((NUM_MB*2))

because the compatibility framebuffer can't cover more than half of PCI
BAR #0. The latter defaults to 64MB in size, and is controlled by
"ram_size_mb".

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15288 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/QemuVideoDxe/Initialize.c