From: "Leif Lindholm" <leif@nuviainc.com>
To: devel@edk2.groups.io, abner.chang@hpe.com
Cc: 'Gerd Hoffmann' <kraxel@redhat.com>,
"Yao, Jiewen" <jiewen.yao@intel.com>,
gaoliming <gaoliming@byosoft.com.cn>,
'Ard Biesheuvel' <ard.biesheuvel@arm.com>,
"Kinney, Michael D" <michael.d.kinney@intel.com>,
"Ni, Ray" <ray.ni@intel.com>,
"Schaefer, Daniel" <daniel.schaefer@hpe.com>,
'Sunil V L' <sunilvl@ventanamicro.com>,
'Ard Biesheuvel' <ardb+tianocore@kernel.org>
Subject: Re: [edk2-devel] [RFC] RISC-V QEMU virtual package
Date: Wed, 8 Sep 2021 16:53:47 +0100 [thread overview]
Message-ID: <20210908155347.uw3y5hpslybojile@leviathan> (raw)
In-Reply-To: <CS1PR8401MB11447410FDE93EF2BA9A70CDFFD49@CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM>
On Wed, Sep 08, 2021 at 15:33:34 +0000, Abner Chang wrote:
> > > I prefer to have RISC-V instance because I
> > > am not sure if any fw_cfg interface changes would be made on RISC-V
> > > QEMU.
> >
> > The fw_cfg interface should not diverge. ia32/x64 works a bit different
> > because there is a separate io address space on that architecture and
> > fw_cfg uses that for historical reasons. All platforms using the mmio
> > variant of the fw_cfg interface should work alike though.
>
> Hmm, ok.
> We can have the common one for both ARM and RISC-V if there is no
> potential issues in the future as you mentioned. We can also add
> #defined (MDE_CPU_RISCV64) to avoid the build error as ARM and
> RISC-V share the same code.
Well, if it's a single file, we can easily make sure it doesn't break.
And we help improving the code quality. It's very easy for code that
gets shoved into architecture-specific subtrees to start growing
architecture-specific statements that don't actually describe anything
architecture-specific - because that sets the stage for how the code
is interpreted.
> One more question, there is already a QemuFwCfgLib library for
> ia32/x64. The naming of QemuFwCfgCommonLib under Library seems
> confusing. How about we put this library under /FDT and also name
> it as QemuFwCfgLib? Because ARM/RISC-V fw_cfg also depends on FDT.
I mean, I would more prefer to rename the x86 one, since that one
becomes the special case. Dependency isn't what should dictate
hierarchy. The FwCfg interface is about a lot more than FDT.
/
Leif
next prev parent reply other threads:[~2021-09-08 15:53 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-05 3:15 [RFC] RISC-V QEMU virtual package Abner Chang
2021-09-06 1:06 ` 回复: [edk2-devel] " gaoliming
2021-09-06 4:16 ` Abner Chang
2021-09-06 6:16 ` Yao, Jiewen
2021-09-06 11:08 ` Abner Chang
2021-09-06 11:44 ` Yao, Jiewen
2021-09-06 12:04 ` Ard Biesheuvel
2021-09-06 12:19 ` Gerd Hoffmann
2021-09-06 13:04 ` Abner Chang
2021-09-07 1:09 ` 回复: " gaoliming
2021-09-07 2:31 ` Abner Chang
2021-09-07 7:18 ` Gerd Hoffmann
2021-09-07 17:22 ` Leif Lindholm
2021-09-08 12:31 ` Abner Chang
2021-09-08 13:37 ` Gerd Hoffmann
2021-09-08 15:33 ` Abner Chang
2021-09-08 15:53 ` Leif Lindholm [this message]
2021-09-09 5:23 ` Gerd Hoffmann
2021-09-10 0:08 ` Abner Chang
2021-09-10 9:54 ` Leif Lindholm
2021-09-10 10:06 ` Ni, Ray
2021-09-11 0:52 ` Abner Chang
[not found] ` <16A39EA413775DFC.29279@groups.io>
2021-09-18 6:46 ` Abner Chang
[not found] ` <16A5D7B7D6218B9A.31588@groups.io>
2021-09-18 7:00 ` Abner Chang
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-list 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=20210908155347.uw3y5hpslybojile@leviathan \
--to=devel@edk2.groups.io \
/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