From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web12.9684.1636448080445320283 for ; Tue, 09 Nov 2021 00:54:40 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ivToT9E7; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636448079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bjRC6CMk3huH1V+B7Z0XRcsVJ0j6oSyw5KqcPNBtOnk=; b=ivToT9E7nTHef5bk017yKVA8e7Nx/QAtDcmFOAhyV/Ch2bm0O+Nsj1I0rI4SWRv0AQbuKu CYsioxmb6c3H3xWPqSamfXSvm/afS4IUGFmPmmenrBAmQl4X58zee1m1Yj3sM7lrVev+kO fIeycuYdXJpbjnFg5SB7r0MgvFdPrR8= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-12-s-swtIjONp24W7HG-xFJZA-1; Tue, 09 Nov 2021 03:54:36 -0500 X-MC-Unique: s-swtIjONp24W7HG-xFJZA-1 Received: by mail-wm1-f71.google.com with SMTP id c185-20020a1c35c2000000b003331dc61c6cso985964wma.6 for ; Tue, 09 Nov 2021 00:54:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=bjRC6CMk3huH1V+B7Z0XRcsVJ0j6oSyw5KqcPNBtOnk=; b=uj1MhzpGqpa9xiqhJXkkekessvZG3KYNJngaQHinFe6xnmV/spCEgAs/AzqStIz0Gn nqofcKDLtedRsbWNfm3xoBqnZbOnoTZPjgPqoVoqJZKpmB5fXJD+LN6R4fYYWSCfpEJG 2cXPMF2liXa9Xm8ruwItjalMe1YWjYL+wY4zJ1cDLVyWofgCzS7fGggi/Klp+z45EdK9 SwmORe1Sh/E0ESShbVWmj0L+Lv+EHGQcbfZ3GousC0OF2lE4aNWuv95Mg0hLRGE9Czep d1fomRauODl0me0pSp39yaFaC5/85uSaJqYU6KgpyfhE67luLvj8j0wXM8eGSFuQq1bC 97tQ== X-Gm-Message-State: AOAM533t0RXhrlexDKKan/cS6gvLSmc7SRK4urfHKq22d/DqgOF04vBi pqZgJKOONRObG3pWZxsJ7oxJqbEi43F77E/qgVq2uDcrCNeSRVlX0PBsYON2qeIaLMLJOZ1VTYx xCub0W1ZaZz5MwIf1lyu44i/jK2563oMcxARqA+f4N5/vuyaX9F3FfEBnjmynFGs= X-Received: by 2002:a5d:4d81:: with SMTP id b1mr7528468wru.366.1636448074389; Tue, 09 Nov 2021 00:54:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwivXxcyG35zs/4hOA2NRRrASs9K6koPerrFv+JCms2Oj08exU8GJv8elKJlRxYJVVpc6HlvA== X-Received: by 2002:a5d:4d81:: with SMTP id b1mr7528437wru.366.1636448074159; Tue, 09 Nov 2021 00:54:34 -0800 (PST) Return-Path: Received: from [192.168.1.36] (62.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.62]) by smtp.gmail.com with ESMTPSA id g18sm2134828wmq.4.2021.11.09.00.54.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 00:54:33 -0800 (PST) Message-ID: <1eaa6c34-80e8-6371-cd3c-94fde2183c88@redhat.com> Date: Tue, 9 Nov 2021 09:54:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [edk2-devel] [PATCH v2 3/5] OvmfPkg/Microvm/fdt: add empty fdt To: devel@edk2.groups.io, kraxel@redhat.com Cc: Jiewen Yao , Jordan Justen , Ard Biesheuvel References: <20211103150627.3133189-1-kraxel@redhat.com> <20211103150627.3133189-4-kraxel@redhat.com> From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= In-Reply-To: <20211103150627.3133189-4-kraxel@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > --- > OvmfPkg/PlatformPei/Platform.c | 26 ++++++++++++++++++++++---- > 1 file changed, 22 insertions(+), 4 deletions(-) Reviewed-by: Philippe Mathieu-Daude