From: Trolle Selander <trolle.selander@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] [RFC] Variable video ram size option
Date: Fri, 09 Jan 2009 20:27:15 -0500 [thread overview]
Message-ID: <4967F973.3050405@eu.citrix.com> (raw)
In-Reply-To: <200901091716.00827.paul@codesourcery.com>
Paul Brook wrote:
>>> I'm pretty sure this is wrong. VBE alows arbritary sized virtual
>>> framebuffers.
>>>
>>>
>> VBE does, but the stdvga/VBE device model currently cannot _make use_ of
>> more, since there highest resolution provided is 2560x1600x32 = 16Megs. The
>> features required to make use of VRAM that is not used for the framebuffer
>> itself are not there, either, and hence any additional memory would just be
>> wasted. Anyone who would want to add features to the stdvga device or to
>> the VBE bios can easily remove or change this check.
>>
>
> Are you sure? I haven't actually tried it, but it looks like it should all
> just work.
>
> Paul
>
>
It's not a matter of it not "working", it's a matter of the extra vram
not being in any way _usable_ to a guest OS or to the emulated device
without additional code in the stdvga device or implentation of VBE/AF
functions in vgabios. Moreover, most of the things that extra
"off-screen" vram would be useful for on real hardware are not helpful
in an emulated device. For example, in a real card you may want to store
pixmaps, fonts, etc in off-screen vram for fast copy to avoid having to
move it over a potentially "slow" bus between system ram and frambuffer
ram, but in an emulated device, vram and system ram are of course all
really system ram, and copies are no faster or slower, although
implementing "emulation" of on-card system ram and mechanisms to copy
and cache over the emulated PCI bus would add additional complexity that
would only make things _slower_.
Trying hard to think up a use for more than 16 Megs in the current case,
I could think of adding horizontally doubled resolutions to provide vm
screens that span Xinerama multi-monitor displays without needing to
emulate multi-display inside the actual VM, but I think such use cases
will be rather rare, and in case someone DOES want it, all that's needed
is to add those resolutions to vbetable-gen and bump the vram limit in
the code to the appropriate number (say 32M for a dual 2560x1600 display).
-- Trolle
next prev parent reply other threads:[~2009-01-10 1:27 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-09 19:45 [Qemu-devel] [PATCH] [RFC] Variable video ram size option Trolle Selander
2009-01-10 0:02 ` Paul Brook
2009-01-10 1:26 ` Trolle Selander
2009-01-10 6:45 ` Blue Swirl
[not found] ` <4967E7D7.4040605@eu.citrix.com>
[not found] ` <200901091716.00827.paul@codesourcery.com>
2009-01-10 1:27 ` Trolle Selander [this message]
[not found] ` <4967ECA7.6040809@eu.citrix.com>
[not found] ` <200901091747.06462.paul@codesourcery.com>
2009-01-10 1:28 ` Trolle Selander
2009-01-10 1:47 ` Jamie Lokier
2009-01-11 7:53 ` Avi Kivity
2009-01-12 17:43 ` Trolle Selander
2009-01-21 18:07 ` [Qemu-devel] [PATCH] [RFC] Variable video ram size option - revised Trolle Selander
2009-01-21 18:23 ` Daniel P. Berrange
2009-01-21 21:51 ` Anthony Liguori
2009-01-21 21:21 ` [Qemu-devel] " Trolle Selander
-- strict thread matches above, loose matches on Subject: below --
2009-01-12 19:13 [Qemu-devel] [PATCH] [RFC] Variable video ram size option Trolle Selander
2009-01-14 20:07 ` Paul Brook
2009-01-14 20:41 ` Trolle Selander
2009-01-14 21:30 ` Paul Brook
2009-01-14 22:47 ` Trolle Selander
2009-01-15 13:08 ` Jamie Lokier
2009-01-15 15:37 ` Rene Rebe
2009-01-15 16:23 ` Jamie Lokier
2009-01-15 17:36 ` Gerd Hoffmann
2009-01-15 20:57 ` Jamie Lokier
2009-01-15 21:41 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4967F973.3050405@eu.citrix.com \
--to=trolle.selander@eu.citrix.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).