From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: devel@edk2.groups.io, kraxel@redhat.com
Cc: Jiewen Yao <jiewen.yao@intel.com>,
Jordan Justen <jordan.l.justen@intel.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>
Subject: Re: [edk2-devel] [PATCH v2 3/5] OvmfPkg/Microvm/fdt: add empty fdt
Date: Tue, 9 Nov 2021 09:54:32 +0100 [thread overview]
Message-ID: <1eaa6c34-80e8-6371-cd3c-94fde2183c88@redhat.com> (raw)
In-Reply-To: <20211103150627.3133189-4-kraxel@redhat.com>
On 11/3/21 16:06, Gerd Hoffmann wrote:
> FdtClient is unhappy without a device tree, so add an empty fdt
> which we can use in case etc/fdt is not present in fw_cfg.
>
> On ARM machines a device tree is mandatory for hardware detection,
> thats why FdtClient fails hard.
>
> On microvm the device tree is only used to detect virtio-mmio devices
> (this patch series) and the pcie host (future series). So edk2 can
> continue with limited functionality in case no device tree is present:
> no storage, no network, but serial console and direct kernel boot
> works.
>
> qemu release 6.2 & newer will provide a device tree for microvm.
>
> https://bugzilla.tianocore.org/show_bug.cgi?id=3689
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
> OvmfPkg/PlatformPei/Platform.c | 26 ++++++++++++++++++++++----
> 1 file changed, 22 insertions(+), 4 deletions(-)
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
next prev parent reply other threads:[~2021-11-09 8:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 15:06 [PATCH v2 0/5] [RfC] OvmfPkg/Microvm: second batch of microvm patches Gerd Hoffmann
2021-11-03 15:06 ` [PATCH v2 1/5] OvmfPkg/Microvm/fdt: add device tree support Gerd Hoffmann
2021-11-03 15:06 ` [PATCH v2 2/5] OvmfPkg/Microvm/fdt: load fdt from fw_cfg Gerd Hoffmann
2021-11-03 15:06 ` [PATCH v2 3/5] OvmfPkg/Microvm/fdt: add empty fdt Gerd Hoffmann
2021-11-09 8:54 ` Philippe Mathieu-Daudé [this message]
2021-11-03 15:06 ` [PATCH v2 4/5] OvmfPkg/Microvm/virtio: add virtio-mmio support Gerd Hoffmann
2021-11-03 15:06 ` [PATCH v2 5/5] OvmfPkg/Microvm: add README Gerd Hoffmann
2021-11-09 8:56 ` [edk2-devel] " Philippe Mathieu-Daudé
2021-11-09 7:13 ` [PATCH v2 0/5] [RfC] OvmfPkg/Microvm: second batch of microvm patches 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=1eaa6c34-80e8-6371-cd3c-94fde2183c88@redhat.com \
--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