On Fr, 2014-01-31 at 21:05 +0100, Laszlo Ersek wrote: > In the next patch we'll add many new BOCHS modes, some of which require > large frame buffers. > > The size of the primary bar (frame buffer) can be changed with the > > -global qxl-vga.ram_size=NUM_BYTES > > QEMU option.
qxl bar #0 holds other bits too, not all of it is available for as framebuffer. > + // fetch available framebuffer size > + // > + Status = Private->PciIo->GetBarAttributes (Private->PciIo, PCI_BAR_IDX0, > + NULL, (VOID**) &FrameBufDesc); Therefore you can't derive the framebuffer size from pci bar size. BochsRead(Private, VBE_DISPI_INDEX_VIDEO_MEMORY_64K) * 64 * 1024; Should be used instead. Probably best placed next to the VBE_DISPI_INDEX_ID check and stored in a variable for later usage. There is another property for the framebuffer size, try this: -vga qxl -global qxl-vga.ram_size_mb=128 -global qxl-vga.vgamem_mb=64 or -vga std -global VGA.vgamem_mb=64 cheers, Gerd ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
