On 25/05/2023 13.39, Peter Maydell wrote:
On Thu, 25 May 2023 at 12:06, Mark Cave-Ayland
<mark.cave-ayl...@ilande.co.uk> wrote:

On 25/05/2023 11:44, Peter Maydell wrote:

On Thu, 25 May 2023 at 11:32, Thomas Huth <th...@redhat.com> wrote:

So there needs to be at least some logic dealing with vga_interface_type if
we want to be able to select a different graphics card for this machine.
Then why not go the full way and use pci_vga_init() here, too? ... that's
certainly the least confusing way for the users.

Is it? From an Arm perspective, having "-vga" do anything
at all is pretty confusing: it's a rather PC-centric option name.
(Also pretty noticeable for the Sparc TCX/CG3 framebuffers,
which are not VGA in any way.)

Right. From the SPARC perspective it was added to allow the user to select 
either the
TCX (default) or CG3 framebuffers from the command line.

However I guess that shouldn't be needed anymore now that mc->default_display 
exists.
Presumably there is now some kind of -global sun4m.default_display=cg3 command 
line
option that could set the machine default_display property value instead?

Maybe. Handling builtin default devices remains kind of awkward.
But for this Arm board they're all just PCI cards, so the
only thing we really need is a way to say "don't create that
default device"...

I wonder whether we could deprecate and finally remove "-vga" ... there is also the "graphics" machine property that is used by some boards instead, so maybe we could use that as a replacement for "-vga none" everywhere (and use "-device xxx" as replacement for "vga xxx" of course). Thoughts?

 Thomas


Reply via email to