From: "Gerd Hoffmann" <kraxel@redhat.com>
To: "Boeuf, Sebastien" <sebastien.boeuf@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"Yao, Jiewen" <jiewen.yao@intel.com>
Subject: Re: Creating new target for Cloud Hypervisor
Date: Mon, 10 Jan 2022 11:45:42 +0100 [thread overview]
Message-ID: <20220110104542.hrfoi5ndwdeh3lal@sirius.home.kraxel.org> (raw)
In-Reply-To: <BY5PR11MB4401E17A7723AC9725B828C6EA509@BY5PR11MB4401.namprd11.prod.outlook.com>
On Mon, Jan 10, 2022 at 09:13:44AM +0000, Boeuf, Sebastien wrote:
> Hi all,
>
> So far I've been able to patch the OvmfPkgX64 target to make it work for both
> QEMU and Cloud Hypervisor, but as I try to enable more features (EFI shell for
> instance) the gap is getting bigger and harder to keep them working together.
>
> That's why I'm thinking about creating an OvmfCh target that would be a simple
> copy of OvmfX64 at first, and then we could keep improving from there. There are
> multiple things that are not needed by Cloud Hypervisor, which might help reduce
> the complexity of the firmware, eventually leading to faster boot.
>
> I'd like some confirmation from the community that it's okay to go down this road
> before I proceed and send the patches.
Well, depends. A separate target is extra maintainance effort. But
having to write code for runtime-switching where compile-time switching
would work without additional code is extra maintainance effort too ...
For microvm pci support (not yet merged) tipped things towards a
separate target. pcie in microvm works completely different when
compared to pc/q35. Using mmconfig for pci config space access is
mandatory, port 0xcf8 is not supported. So fitting that with a runtime
switch into OvmfPkg/Library/DxePciLibI440FxQ35 (and probably some other
places) would have been quite messy, with a separate target is is *alot*
easier.
Quite a few places use a runtime switch nevertheless to avoid code
duplication. PlatformPei for example is identical for both OvmfPkgX64
and MicrovmX86 targets, with case: branches for microvm in switch
statements.
So, what problem you are facing which makes you think a separate target
would work better? The timer thing should be a non-issue as we plan to
switch over OvmfPkgX64 to use apic timer anyway.
take care,
Gerd
next prev parent reply other threads:[~2022-01-10 10:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-10 9:13 Creating new target for Cloud Hypervisor Boeuf, Sebastien
2022-01-10 10:35 ` Yao, Jiewen
2022-01-10 10:45 ` Boeuf, Sebastien
2022-01-10 10:45 ` Gerd Hoffmann [this message]
2022-01-10 11:03 ` Boeuf, Sebastien
2022-01-10 11:54 ` 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-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=20220110104542.hrfoi5ndwdeh3lal@sirius.home.kraxel.org \
--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