From nobody Tue Feb 10 02:43:32 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+80803+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+80803+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1631794873; cv=none; d=zohomail.com; s=zohoarc; b=CXS8NL9qzXpjM2m6n7ItJP0eS+jrTJcmRXXGzrjuDugOtNGrY8wkAJvoBPGo0YEqcmNBWwPakNyrPpIws9k+oeGuflK5kUBUqX1O/tbAJ07RoUXujQFdTtoFKCJ/hYHktXgIP2r9rLwRHcLlkfE1oBQyAGusv707+nYC9RHFfS4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631794873; 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=K9PxAGknLmGE9WT6ql8+z9i4KvFaHga/GhHfQ0RiC+Y=; b=VsrYv1c0Io+UBJjPskRagT6bLw5L6htZdNb4/r7aBOlRcsndW5PwpM5IXXFlT/2UZ4cwBULQjDGpCKS3sbLov4r2jbHbypT79WU0/WZqSs1OItfYiYZ44ZTBzv5rQeekCIFY2SU3PvXrrYBAPTdI5D1NcksdVcnahfaMthzozk0= 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+80803+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 1631794873741727.1176557146651; Thu, 16 Sep 2021 05:21:13 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id rrkGYY1788612xpbBjObtB17; Thu, 16 Sep 2021 05:21:13 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web12.179.1631794872764647834 for ; Thu, 16 Sep 2021 05:21:12 -0700 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-473-BXt03Y0jMjCpQfhGVnmvcw-1; Thu, 16 Sep 2021 08:21:08 -0400 X-MC-Unique: BXt03Y0jMjCpQfhGVnmvcw-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E69C519057AA; Thu, 16 Sep 2021 12:21:06 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A74CC3AC0; Thu, 16 Sep 2021 12:21:06 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id D298A18009EA; Thu, 16 Sep 2021 14:20:27 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jordan Justen , Gerd Hoffmann , Jiewen Yao , Julien Grall , Stefan Berger , Leif Lindholm , Ard Biesheuvel , Andrew Fish , Michael D Kinney , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Anthony Perard , Jiewen Yao Subject: [edk2-devel] [PATCH v4 19/20] OvmfPkg/Microvm: add README Date: Thu, 16 Sep 2021 14:20:26 +0200 Message-Id: <20210916122027.2352393-20-kraxel@redhat.com> In-Reply-To: <20210916122027.2352393-1-kraxel@redhat.com> References: <20210916122027.2352393-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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: 7s0Wx5f9bnidYbklsPPfbZ6ox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1631794873; bh=BFGm9L1p2PEYAGXG7uxaxpBXsba/tVjoYgLu7WuFOdU=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=vkjg5+rSwJiKh37Yov5gpydv92TLJC5PENcCwluXRlsOlgKxBk5lmmTZFY470BwpjDd d/e9XVPCQuaLPr0DdFpGMYen95VyXy6aWcb/3VgvtQPRMt+ye+RC2q0LWCvvrbYCijTsn MahTairCvlFdlXoW2z4oMWOk7ngiPJYam/U= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1631794875020100033 Content-Type: text/plain; charset="utf-8" Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3599 Signed-off-by: Gerd Hoffmann Acked-by: Jiewen Yao --- OvmfPkg/Microvm/README | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 OvmfPkg/Microvm/README diff --git a/OvmfPkg/Microvm/README b/OvmfPkg/Microvm/README new file mode 100644 index 000000000000..78c2b53318de --- /dev/null +++ b/OvmfPkg/Microvm/README @@ -0,0 +1,54 @@ + +This is an *experimental* port of OVMF for the qemu microvm +machine type. + +microvm background info +----------------------- + +microvm is designed for modern, virtio-based workloads. Most legacy +lpc/isa devices like pit and pic can be turned off. virtio-mmio +(i.e. '-device virtio-{blk,net,scsi,...}-device') is used for +storage/network/etc. + +Optional pcie support is available and any pcie device supported by +qemu can be plugged in (including virtio-pci if you prefer that over +virtio-mmio). + +https://qemu.readthedocs.io/en/latest/system/i386/microvm.html +https://www.kraxel.org/blog/2020/10/qemu-microvm-acpi/ + +design issues +------------- + +Not fully clear yet how to do hardware detection best. Right now +using device tree to find virtio-mmio devices and pcie host bridge, +can reuse existing ArmVirtPkg code that way. Needs patched qemu. + +features +-------- + [working] serial console + [working] direct kernel boot + [in progress] virtio-mmio support + [in progress] pcie support + +known limitations +----------------- + * rtc=3Don is required for now. + * can't use separate code/vars (actually an microvm limitation, + there is no pflash support). + * transitional virtio-pci devices do not work. microvm doesn't + support ioports on pcie, and ovmf doesn't initialize pcie devices + with ioports if there is no address space for them (even though + pcie devices are required to be functional without ioports). + +known bugs +---------- + * timer has wrong frequency (running fast on my hardware). + +usage +----- +qemu-system-x86_64 \ + -nographic \ + -machine microvm,acpi=3Don,pit=3Doff,pic=3Doff,rtc=3Don \ + -bios /path/to/MICROVM.fd \ + [ ... more args here ... ] --=20 2.31.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 (#80803): https://edk2.groups.io/g/devel/message/80803 Mute This Topic: https://groups.io/mt/85649953/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-