From: Andrea Bolognani <abologna@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: "Xianglai Li" <lixianglai@loongson.cn>,
qemu-devel@nongnu.org, maobibo@loongson.cn,
"Song Gao" <gaosong@loongson.cn>,
zhaotianrui@loongson.cn, "Laszlo Ersek" <lersek@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH V2 1/1] loongarch: Change the UEFI loading mode to loongarch
Date: Thu, 22 Feb 2024 07:49:04 -0800 [thread overview]
Message-ID: <CABJz62ML+ye=mwX2vfZJG==TOHLyLoFMGZaAvTS36Dcax8jcaA@mail.gmail.com> (raw)
In-Reply-To: <582cb02c-9778-46af-97d3-5b248b30b02e@linaro.org>
On Thu, Feb 22, 2024 at 04:10:20PM +0100, Philippe Mathieu-Daudé wrote:
> On 19/2/24 11:34, Xianglai Li wrote:
> > The UEFI loading mode in loongarch is very different
> > from that in other architectures:loongarch's UEFI code
> > is in rom, while other architectures' UEFI code is in flash.
> >
> > loongarch UEFI can be loaded as follows:
> > -machine virt,pflash=pflash0-format
> > -bios ./QEMU_EFI.fd
> >
> > Other architectures load UEFI using the following methods:
> > -machine virt,pflash0=pflash0-format,pflash1=pflash1-format
> >
> > loongarch's UEFI loading method makes qemu and libvirt incompatible
> > when using NVRAM, and the cost of loongarch's current loading method
> > far outweighs the benefits, so we decided to use the same UEFI loading
> > scheme as other architectures.
>
> This is unfortunate, since LoongArch was a fresh new target added,
> we had the possibility to make this right. Are you saying libvirt
> didn't accept to add support for the correct HW behavior which is
> to simply load a ROM instead of a PNOR flash device? Could you
> point me to the libvirt discussion please? libvirt is very good at
> supporting a broad range of legacy options, so I'm surprise 'Doing
> The Right Thing' is too costly.
>
> What is really the problem here, is it your use of the the -bios
> CLI option?
Hi Philippe,
the thread is here:
https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/7PV3IXWNX3UXQN2BNV5UA5ASVXNVOQIF/
Unfortunately hyperkitty makes it impossible to link to a subthread
directly, so you're going to have to scroll around. The relevant part
of the discussion happens entirely as reply to the cover letter.
You were actually CC'd to that subthread right after my first reply,
so you should be able to find the relevant messages locally as well,
which is probably going to be more convenient.
In short, the discussion is similar to the one we had a while ago
about RISC-V, and my argument in favor of this change is largely the
same: barring exceptional circumstances, the overall (maintenance,
cognitive) cost of straying from the established norm, now spanning
three existing architectures, likely outweighs the benefits.
--
Andrea Bolognani / Red Hat / Virtualization
next prev parent reply other threads:[~2024-02-22 15:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-19 10:34 [PATCH V2 0/1] Change the UEFI loading mode to loongarch Xianglai Li
2024-02-19 10:34 ` [PATCH V2 1/1] loongarch: " Xianglai Li
2024-02-21 8:25 ` gaosong
2024-02-22 15:10 ` Philippe Mathieu-Daudé
2024-02-22 15:49 ` Andrea Bolognani [this message]
2024-02-25 13:57 ` Laszlo Ersek
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='CABJz62ML+ye=mwX2vfZJG==TOHLyLoFMGZaAvTS36Dcax8jcaA@mail.gmail.com' \
--to=abologna@redhat.com \
--cc=berrange@redhat.com \
--cc=gaosong@loongson.cn \
--cc=kraxel@redhat.com \
--cc=lersek@redhat.com \
--cc=lixianglai@loongson.cn \
--cc=maobibo@loongson.cn \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=zhaotianrui@loongson.cn \
/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).