qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ramfb: Add property to control if load the romfile
@ 2025-06-09  7:34 Shaoqin Huang
  2025-06-09  7:34 ` [PATCH v3 1/2] " Shaoqin Huang
  2025-06-09  7:34 ` [PATCH v3 2/2] hw/arm: Add the romfile compatatibility Shaoqin Huang
  0 siblings, 2 replies; 9+ messages in thread
From: Shaoqin Huang @ 2025-06-09  7:34 UTC (permalink / raw)
  To: qemu-arm
  Cc: Daniel P. Berrangé, Peter Maydell, Gerd Hoffmann, Eric Auger,
	Shaoqin Huang, Alex Williamson, Cédric Le Goater, qemu-devel

Now the ramfb will load the vgabios-ramfb.bin unconditionally, but only
the x86 need the vgabios-ramfb.bin, this can cause that when use the
release package on arm64 it can't find the vgabios-ramfb.bin.

Because only seabios will use the vgabios-ramfb.bin, load the rom logic
is x86-specific. For other !x86 platforms, the edk2 ships an EFI driver
for ramfb, so they don't need to load the romfile.

So add a new property use_legacy_x86_rom in both ramfb and vfio_pci
device, because the vfio display also use the ramfb_setup() to load
the vgabios-ramfb.bin file.

After have this property, the machine type can set the compatibility to
not load the vgabios-ramfb.bin if the arch doesn't need it.

I set the "use-legacy-x86-rom" property on arm to false, thus the arm won't load
the vgabios-ramfb.bin.

I want to set the "use-legacy-x86-rom" property to false by default, and only
set it to true on x86, but I didn't find the similiar thing like the
arm_virt_compat, so I didn't use this way.

Changelog:
---------
v2 -> v3:
  - Fix the underscore error.
  - Add a new patch to set the property in arm compatibility.
v1 -> v2:
  - Change the property name.

v2: https://lore.kernel.org/all/20250606070234.2063451-1-shahuang@redhat.com/
v1: https://lore.kernel.org/all/20250605030351.2056571-1-shahuang@redhat.com/

Shaoqin Huang (2):
  ramfb: Add property to control if load the romfile
  hw/arm: Add the romfile compatatibility

 hw/arm/virt.c                 | 3 +++
 hw/display/ramfb-standalone.c | 4 +++-
 hw/display/ramfb-stubs.c      | 2 +-
 hw/display/ramfb.c            | 6 ++++--
 hw/vfio/display.c             | 4 ++--
 hw/vfio/pci.c                 | 1 +
 hw/vfio/pci.h                 | 1 +
 include/hw/display/ramfb.h    | 2 +-
 8 files changed, 16 insertions(+), 7 deletions(-)

-- 
2.40.1



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

end of thread, other threads:[~2025-06-16  5:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-09  7:34 [PATCH v3 0/2] ramfb: Add property to control if load the romfile Shaoqin Huang
2025-06-09  7:34 ` [PATCH v3 1/2] " Shaoqin Huang
2025-06-09  9:07   ` Daniel P. Berrangé
2025-06-10  6:47     ` Gerd Hoffmann
2025-06-16  5:52       ` Shaoqin Huang
2025-06-09  7:34 ` [PATCH v3 2/2] hw/arm: Add the romfile compatatibility Shaoqin Huang
2025-06-09  8:48   ` Peter Maydell
2025-06-09  9:10     ` Daniel P. Berrangé
2025-06-16  5:53       ` Shaoqin Huang

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