On Wed, 31 Jan 2024 at 10:29, Michael Tokarev <m...@tls.msk.ru> wrote: > qemu-system-aarch64 -device virtio-vga > > this one loads vgabios-virtio.bin. Why? > Does this bios work on aarch64 (or any other non-x86 arch)? > Should there may be some conditional in this and similar places? > The same is true for x86 pxe roms and other x86-only roms.
For the same reason that if you plug a PCI card with an x86 BIOS ROM on it into a non-x86 system with a PCI bus, the x86 code is still on the ROM, even if it's never executed :-) Mostly the ROM is ignored and the guest kernel drives the hardware directly without it. For stuff we control like virtio-vga it would probably be helpful to be able to drop the requirement for the binary blob, just as a practical convenience for users. thanks -- PMM