]> git.ipfire.org Git - thirdparty/qemu.git/commit
ramfb: Add property to control if load the romfile
authorShaoqin Huang <shahuang@redhat.com>
Thu, 17 Jul 2025 10:09:39 +0000 (06:09 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Jul 2025 10:44:57 +0000 (12:44 +0200)
commit350785d41d8bb0b799dd16ea04a7232dc8d6093a
tree85f6d65f0aff99f3e349a90d9d9089cda5d9b0a0
parentc079d3a31e45093286c65f8ca5350beb3a4404a9
ramfb: Add property to control if load the romfile

Currently the ramfb device loads 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.

For now the default value is true but it will be turned off by default
in subsequent patch when compats get properly handled.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Shaoqin Huang <shahuang@redhat.com>
Message-ID: <20250717100941.2230408-2-shahuang@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/ramfb-standalone.c
hw/display/ramfb-stubs.c
hw/display/ramfb.c
hw/vfio/display.c
hw/vfio/pci.c
hw/vfio/pci.h
include/hw/display/ramfb.h