On 02/03/14 08:37, Gerd Hoffmann wrote:
> 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

Thanks for the review!

But, indeed, that's my problem exactly. I did look into the qemu source
(and I did notice VBE_DISPI_INDEX_VIDEO_MEMORY_64K), and there are about
five device and/or global properties (from which libvirt uses at least
two) that mess around with sizes related to video ram.

Also there's bar 1 ("vram32_size"?) which is supposed to hold... What
precisely? Very confusing.

So, I understand VBE_DISPI_INDEX_VIDEO_MEMORY_64K is what I should use
for querying. What is the *one* qemu option that I need to use for
setting? I'd like to put the right hint in the commit message.

Thanks,
Laszlo

------------------------------------------------------------------------------
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

Reply via email to