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.129.124]) by mx.groups.io with SMTP id smtpd.web12.9283.1639388148025599461 for ; Mon, 13 Dec 2021 01:35:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I4V0RQOr; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639388147; 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=872utOv3C6Q5qczugfXTp0lC2/Z3Sj6wrllfgs8YXM8=; b=I4V0RQOrAMicEvZCEro3Ppkq8o2yLhLlSifq+2AhafD/BkkZBZAKz7cZ+W6QZpQbRdBrlP bOTGdD5KjR5x++f8oPSu4RqQ95Ep/6W5KUUaxJcdKJs59kmwzlqb4eEqFjUJFPEp957OXS TVjj2aloyAJefl2kEF9Lm8y5/OkyG20= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-365-i7rsmvaGN2W3AKhEvKICeA-1; Mon, 13 Dec 2021 04:35:42 -0500 X-MC-Unique: i7rsmvaGN2W3AKhEvKICeA-1 Received: by mail-wm1-f71.google.com with SMTP id m14-20020a05600c3b0e00b0033308dcc933so6260703wms.7 for ; Mon, 13 Dec 2021 01:35:42 -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=872utOv3C6Q5qczugfXTp0lC2/Z3Sj6wrllfgs8YXM8=; b=g2kH8bs8QP/KDsw1yvO6/h6tLbTAa6VW0/raZKd4VmsSzJgprSsanYURAq+6xCVIc+ x0lq7iNUvapn8pcLBUbIyKgGfqBrmLAtsbSxzxSdy9r3tZf8kah6EEgXxQjhQO5/P1ot Me+HeA/k/XQDWu/M7CCE1zqy5wN7umwXnOInYQ8UbIp5dmbsKQ7YeHNx36Ex87b2mPam 56Ff6HlrZO+jGD7SJKrgHddobLzNEQbVVbD211av21XPXUtsaUFB6O/RggCBOyQiSNrC yp7/USkb1iqN9zJuQUsr0yoJCZ7qcfcj1/+3XHJc6xjU+Vr7X4Ja2GlV4JTeFKITOcWw V2XA== X-Gm-Message-State: AOAM531scPADUUivwACw3LonKeQ8Fng4Jlf829+BvHsmDahzbdr09fGg IfCbhNA7oJMtcbpkSfWrqzgEqJxCuGclHALOl2J/7I8VwW4/MXw0Gz1mWEoYy4qMksS1OXF0PQ6 maRmSwnS6jMP3Iw== X-Received: by 2002:a5d:6e04:: with SMTP id h4mr30163997wrz.127.1639388141554; Mon, 13 Dec 2021 01:35:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRBafUSE31qELGP0MTZM3wjF6+agz6vvhrDYLjZG2Fp28UWYnWy6C+NSBHtxdE/RrI4YkM7w== X-Received: by 2002:a5d:6e04:: with SMTP id h4mr30163980wrz.127.1639388141373; Mon, 13 Dec 2021 01:35:41 -0800 (PST) Return-Path: Received: from [192.168.1.36] (174.red-83-50-185.dynamicip.rima-tde.net. [83.50.185.174]) by smtp.gmail.com with ESMTPSA id o3sm8144737wri.103.2021.12.13.01.35.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Dec 2021 01:35:41 -0800 (PST) Message-ID: Date: Mon, 13 Dec 2021 10:35:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v3 3/5] OvmfPkg/Microvm/fdt: add empty fdt To: Gerd Hoffmann , devel@edk2.groups.io Cc: Jordan Justen , Jiewen Yao , Pawel Polawski , Ard Biesheuvel References: <20211213081658.3535809-1-kraxel@redhat.com> <20211213081658.3535809-4-kraxel@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20211213081658.3535809-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 12/13/21 09:16, 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. "that's" > > 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 > Reviewed-by: Philippe Mathieu-Daude > --- > OvmfPkg/PlatformPei/Platform.c | 26 ++++++++++++++++++++++---- > 1 file changed, 22 insertions(+), 4 deletions(-)