From: Peter Maydell <peter.maydell@linaro.org>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: why various devices are loading x86 roms on non-x86 architectures?
Date: Wed, 31 Jan 2024 13:00:53 +0000 [thread overview]
Message-ID: <CAFEAcA_qxALhqHgd0zO6v6ufTaHvmiyyHuCDcHZdxRvbh+x_Hg@mail.gmail.com> (raw)
In-Reply-To: <8e838817-8b55-4275-a199-0562216d2d1d@tls.msk.ru>
On Wed, 31 Jan 2024 at 10:29, Michael Tokarev <mjt@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
next prev parent reply other threads:[~2024-01-31 13:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 10:28 why various devices are loading x86 roms on non-x86 architectures? Michael Tokarev
2024-01-31 10:54 ` Jiaxun Yang
2024-01-31 13:00 ` Peter Maydell [this message]
2024-01-31 13:22 ` BALATON Zoltan
2024-02-01 10:08 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFEAcA_qxALhqHgd0zO6v6ufTaHvmiyyHuCDcHZdxRvbh+x_Hg@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).