From nobody Mon Feb 9 22:03:58 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+84689+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+84689+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639383430; cv=none; d=zohomail.com; s=zohoarc; b=RQTUoJMiTvL5nYylTq1Gk8xwswnzk6GPKAR97u15jhfQ78MV3p9OOfvXfiADojFMiaIr8Ci7ESnT2CgdaHqEuItSLYnos9OYahaeDiUzOZCyi3QCGIHOq2VBzJLPnZiwOhrER8SdtZFhlQikbGPfAxoLKq6K3W/sg85Ua8bsf9U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639383430; 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=YZc2f+XQO3oAVdgUeYcNMriCjcRpYEbwngePBpb1ZNo=; b=Fm09qMHq2QC/RGTwv/am1Em0Z4SXkxkh9gNmDU4IEJloUzst7tcuCyRNmAuUGpMx5SANFBPjwinK6jefzTGlriQGKcrZnn5jn0AUMppj78kH8GWtq2+iEQ0AO4Eha03NpPWRuWZKpRpqrEO6nZWI5rDpIj/G6UUWr+TfQR2Jggo= 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+84689+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 1639383430144583.8066119532607; Mon, 13 Dec 2021 00:17:10 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id R4VlYY1788612xHTGip4ydSp; 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.web11.8581.1639383429118848886 for ; Mon, 13 Dec 2021 00:17:09 -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-561-C08cWIkgOp-bd1FQvIQXCA-1; Mon, 13 Dec 2021 03:17:04 -0500 X-MC-Unique: C08cWIkgOp-bd1FQvIQXCA-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 5FEE08042EA; 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 2153B5D6D7; Mon, 13 Dec 2021 08:17:03 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 486701800631; 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 , Jiewen Yao Subject: [edk2-devel] [PATCH v3 5/5] OvmfPkg/Microvm: add README Date: Mon, 13 Dec 2021 09:16:58 +0100 Message-Id: <20211213081658.3535809-6-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.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: RMrCq0JEbj1Gg1TXHEbyWCkQx1787277AA= 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=vg0nCOQ95Lm1fWar27K+bDrMChbokAzadeVkU9m3JtY=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=k2gWV3eMhPrvAaXuZ1Mz3BtxjJA61b7/eMzuKo8JUFTU/KWYiqJ18XyFGeJoBuo5BGL 1uUX7y5HwTsViTDSiio836LMPOTC6mAlse6sScQSPdMaBlxB7Nx0x0SxhrjURry4T9YZV V2GY42vfWSIhjFaRhp2yE77LhbpRHzEhyhM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639383431496100023 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 Reviewed-by: Philippe Mathieu-Daude --- OvmfPkg/Microvm/README | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 OvmfPkg/Microvm/README diff --git a/OvmfPkg/Microvm/README b/OvmfPkg/Microvm/README new file mode 100644 index 000000000000..540d39f2ec21 --- /dev/null +++ b/OvmfPkg/Microvm/README @@ -0,0 +1,50 @@ + +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 + [working] 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). + +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.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 (#84689): https://edk2.groups.io/g/devel/message/84689 Mute This Topic: https://groups.io/mt/87693656/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-