qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Any plan for command line '-g' option (graphical resolution and depth)?
@ 2025-02-20  9:20 Philippe Mathieu-Daudé
  2025-02-20  9:50 ` Paolo Bonzini
  2025-02-20 11:13 ` Mark Cave-Ayland
  0 siblings, 2 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-02-20  9:20 UTC (permalink / raw)
  To: QEMU Developers
  Cc: Laurent Vivier, Mark Cave-Ayland, Daniel Henrique Barboza,
	Markus Armbruster, Daniel P. Berrangé, Paolo Bonzini,
	Peter Maydell, qemu-ppc, Artyom Tarasenko, Alex Bennée

Hi,

QEMU provides the global '-g' CLI option:

$ qemu-system-foo --help

   -g WxH[xDEPTH]  Set the initial graphical resolution and depth

This option is used to pass resolution/depth information to guest
firmwares in the machines defined in the following files:

   hw/ppc/mac_newworld.c
   hw/ppc/mac_oldworld.c
   hw/ppc/prep.c
   hw/ppc/spapr.c
   hw/sparc/sun4m.c
   hw/sparc64/sun4u.c

Examples:

- hw/ppc/spapr.c:1102:

   _FDT(fdt_setprop_cell(fdt, c, "qemu,graphic-width", graphic_width));

- hw/sparc64/sun4u.c:716:

   fw_cfg_add_i16(fw_cfg, FW_CFG_SPARC64_WIDTH, graphic_width);


Obviously we have default values, which are different per architecture!
Clearly these ought to be machine properties.


It is also used to set TYPE_NUBUS_MACFB properties in hw/m68k/q800.c.
Here i suppose we could directly use '-global nubus-macfb.width=value'
etc. although I'm not sure it is the recommended way.

Should we start deprecating '-g' as a whole?

Regards,

Phil.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-20 11:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-20  9:20 Any plan for command line '-g' option (graphical resolution and depth)? Philippe Mathieu-Daudé
2025-02-20  9:50 ` Paolo Bonzini
2025-02-20 10:22   ` Philippe Mathieu-Daudé
2025-02-20 11:28   ` Gerd Hoffmann
2025-02-20 11:13 ` Mark Cave-Ayland

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