From nobody Mon Feb 9 12:15:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+84688+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84688+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639383429; cv=none; d=zohomail.com; s=zohoarc; b=amYAY841zet9Gjk0bD4rxoCmT+cjPNIz2P4lymy7u7pW1gATnbzAa1No5+kjLXzCjYEl66Vmseq0Bz3YgYmwoqPP7t/sw/zMPc7sJe1ZxpdMb5dFDyNd2vmjmAHRY1rIhW+URkvTm5idI/CaPM8RoLBsGxIaPKPBWpPXjkbXS9k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639383429; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=pM5MiSSFyH9xn+Yceue/bqemWd5qGFukqCUrC1T+ZYw=; b=P8bAyIipdq3DJrxPoX3eNFr9bATNN9QrDFciGBaLOemUmqWCvzGu/g3ktCT68Q/3NjSFB6+4kouyxypU6wrAg44yM3wD8dkkLm6jP0+6AL9nfpitrVxncufnRgJiYPksjx/rKGq5jPCqijwFEH9ld1BAuMYsoD6SNVS2aPjHcgE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+84688+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 16393834295681022.9913443750562; Mon, 13 Dec 2021 00:17:09 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id qJmRYY1788612xBOyuyJ9KtG; Mon, 13 Dec 2021 00:17:09 -0800 X-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.web08.8616.1639383428603944783 for ; Mon, 13 Dec 2021 00:17:08 -0800 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-459-hsojy99lMjO6zd8qA90uUA-1; Mon, 13 Dec 2021 03:17:04 -0500 X-MC-Unique: hsojy99lMjO6zd8qA90uUA-1 X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 59574101F005; Mon, 13 Dec 2021 08:17:03 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1F87B418E; Mon, 13 Dec 2021 08:17:03 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 442E6180062F; Mon, 13 Dec 2021 09:16:58 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jordan Justen , Jiewen Yao , Pawel Polawski , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 4/5] OvmfPkg/Microvm/virtio: add virtio-mmio support Date: Mon, 13 Dec 2021 09:16:57 +0100 Message-Id: <20211213081658.3535809-5-kraxel@redhat.com> In-Reply-To: <20211213081658.3535809-1-kraxel@redhat.com> References: <20211213081658.3535809-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: zBOMWxOZCuN9QzzXnveYoaKUx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639383429; bh=RtJL23b1vbrXYK7rlvBN122ZUEKrYF05ieDZTGJElhM=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=onRm9pEWzeDHar28+vSi0w88akQLO+jp9AmMAyWrWjsyP///gCi47JZEq9job6MYyYu Wl7GR5LRrRZppdhYOGuZ8mos5ptSMM0LMDGT0y5Ph3SLlW1FT4gyb4qYlA3mggQwIfE1M dnzuXnMYNhIi67KjVNvO9T4IlVIL8Cpt5io= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639383431395100019 Content-Type: text/plain; charset="utf-8" Add virtio-mmio support (VirtioMmioDeviceLib and VirtioFdtDxe). With this patch added and a new enough qemu version (6.2+) edk2 will detect virtio-mmio devices, so it is possible to boot from storage (virtio-blk, virtio-scsi) or network (virtio-net). https://bugzilla.tianocore.org/show_bug.cgi?id=3D3689 Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daude --- OvmfPkg/Microvm/MicrovmX64.dsc | 2 ++ OvmfPkg/Microvm/MicrovmX64.fdf | 1 + 2 files changed, 3 insertions(+) diff --git a/OvmfPkg/Microvm/MicrovmX64.dsc b/OvmfPkg/Microvm/MicrovmX64.dsc index edddf6c29b32..a78c8f3dd89f 100644 --- a/OvmfPkg/Microvm/MicrovmX64.dsc +++ b/OvmfPkg/Microvm/MicrovmX64.dsc @@ -233,6 +233,7 @@ [LibraryClasses.common] SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPort= Lib16550.inf PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatfor= mHookLibNull.inf FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf + VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice= Lib.inf =20 [LibraryClasses.common.SEC] QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf @@ -744,6 +745,7 @@ [Components] # device tree # EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf + OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf =20 # # SMBIOS Support diff --git a/OvmfPkg/Microvm/MicrovmX64.fdf b/OvmfPkg/Microvm/MicrovmX64.fdf index 905d23b843d3..6999ac1a87b9 100644 --- a/OvmfPkg/Microvm/MicrovmX64.fdf +++ b/OvmfPkg/Microvm/MicrovmX64.fdf @@ -277,6 +277,7 @@ [FV.DXEFV] INF OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf =20 INF EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf +INF OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf =20 !if $(TOOL_CHAIN_TAG) !=3D "XCODE5" INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf --=20 2.33.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#84688): https://edk2.groups.io/g/devel/message/84688 Mute This Topic: https://groups.io/mt/87693655/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-