From: Shaoqin Huang <shahuang@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>,
Eric Auger <eauger@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [PATCH v3 2/2] hw/arm: Add the romfile compatatibility
Date: Mon, 16 Jun 2025 13:53:59 +0800 [thread overview]
Message-ID: <2daf32b5-1279-444f-89fe-65633c1ec9f7@redhat.com> (raw)
In-Reply-To: <aEak8utPPkHepVfR@redhat.com>
On 6/9/25 5:10 PM, Daniel P. Berrangé wrote:
> On Mon, Jun 09, 2025 at 09:48:36AM +0100, Peter Maydell wrote:
>> On Mon, 9 Jun 2025 at 08:34, Shaoqin Huang <shahuang@redhat.com> wrote:
>>>
>>> On arm64, it doesn't use the vgabios-ramfb.bin, so set the property
>>> "use-legacy-x86-rom" to false, thus the ramfb won't load the
>>> vgabios-ramfb.bin.
>>>
>>> This can mitigate the problem that on release version the qemu can't
>>> find the vgabios-ramfb.bin if it use the ramfb.
>>>
>>> Signed-off-by: Shaoqin Huang <shahuang@redhat.com>
>>> ---
>>> hw/arm/virt.c | 3 +++
>>> 1 file changed, 3 insertions(+)
>>>
>>> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
>>> index a96452f17a..5f94f7a2ca 100644
>>> --- a/hw/arm/virt.c
>>> +++ b/hw/arm/virt.c
>>> @@ -38,6 +38,7 @@
>>> #include "hw/arm/primecell.h"
>>> #include "hw/arm/virt.h"
>>> #include "hw/block/flash.h"
>>> +#include "hw/vfio/pci.h"
>>> #include "hw/vfio/vfio-calxeda-xgmac.h"
>>> #include "hw/vfio/vfio-amd-xgbe.h"
>>> #include "hw/display/ramfb.h"
>>> @@ -90,6 +91,8 @@
>>>
>>> static GlobalProperty arm_virt_compat[] = {
>>> { TYPE_VIRTIO_IOMMU_PCI, "aw-bits", "48" },
>>> + { TYPE_RAMFB_DEVICE, "use-legacy-x86-rom", "false" },
>>> + { TYPE_VFIO_PCI, "use-legacy-x86-rom", "false" },
>>
>> I think we should find a way to make this default to "false"
>> and only be set "true" for x86. Otherwise every single non-x86
>> board that ever adds support for ramfb and virtio will have
>> to add these two lines, which is a source of future bugs.
>> (Whereas if you forget to mark a new x86 board as needing
>> the legacy rom you'll find out about it pretty quickly.)
>
> Yes, going forward we this to default to true only on x86.
>
> For non-x86, historical versioned machine types will need
> likely it set to true, in order to avoid the memory layout
> being changed IIUC.
Ok, I will set this to be true by default only on x86.
Thanks,
Shaoqin
>
>
> With regards,
> Daniel
--
Shaoqin
prev parent reply other threads:[~2025-06-16 5:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=2daf32b5-1279-444f-89fe-65633c1ec9f7@redhat.com \
--to=shahuang@redhat.com \
--cc=berrange@redhat.com \
--cc=eauger@redhat.com \
--cc=kraxel@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--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).