From nobody Tue Feb 10 14:49:40 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+83268+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+83268+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635952037; cv=none; d=zohomail.com; s=zohoarc; b=SWzFGBwx24YkyG6ie1w0MeiJy027k9upgeqeQqfmVGNqtKLDAN2TK0Oom95ZIR9kPoI47amga6l4LbNezS8bOqH7g7juDPrs5aNRPR7YLYFeaTzR47Hetjsjm5hoZaY6H02yxAlXlEdR3rvUxmtyPBoiiorH0mcf9/nqj82OZWM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635952037; 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=4xWYQYeyt7fI6cNp50o8bSM8cDnYOHmDeUFLGQBC/dI=; b=Rln3RQ6QsXYgJTsfEOEwQkh/cvADoufEWV/uAaMxOZKu6GVE0oMWfdkzxzDyRvlPtV4Ax8vTd5+/ugjH42l/fBAv+kQaZt+QQsTYs3r81ARBM1wP1Aa68VY2Ze4x8A4ke45BCQisPLFrdKZqnnTwJpZJDn99b8Zbri2rOVd36Oo= 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+83268+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 1635952037527687.3677832521465; Wed, 3 Nov 2021 08:07:17 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ix9kYY1788612xnuburNAvle; Wed, 03 Nov 2021 08:07:17 -0700 X-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.web08.8928.1635952036466691253 for ; Wed, 03 Nov 2021 08:07:16 -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-530-xShWh2yOMCKoZ6jqRW2RXQ-1; Wed, 03 Nov 2021 11:07:10 -0400 X-MC-Unique: xShWh2yOMCKoZ6jqRW2RXQ-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 737FB18414A0; Wed, 3 Nov 2021 15:07:09 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B37757CAB; Wed, 3 Nov 2021 15:06:51 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 957C418221BA; Wed, 3 Nov 2021 16:06:27 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Gerd Hoffmann , Jordan Justen , Ard Biesheuvel , Jiewen Yao Subject: [edk2-devel] [PATCH v2 5/5] OvmfPkg/Microvm: add README Date: Wed, 3 Nov 2021 16:06:27 +0100 Message-Id: <20211103150627.3133189-6-kraxel@redhat.com> In-Reply-To: <20211103150627.3133189-1-kraxel@redhat.com> References: <20211103150627.3133189-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: kHkAPK2nJxO9ifc5N250KUaVx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635952037; bh=xGmkv5MjRZ5eZV5C/G0xgk2zDenrAyI1Eqot2Ksdla0=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=clvR+zf6BdNUs8kvxjDje9umiWbt1zlcdGffN6hlkrRDsA+NzinAy0HQt3bqm+tnx53 cxci481NRAc1tjfcOF0+I+Meb5bv9cb/HZN3Mn2jnHf2tXsjf1fBgMzbItfix/eiyVGDB q3NFJYnLyppzR/uAUlNH1uCBe6LSKN+wIew= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635952039507100002 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 | 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..82e2bfe03d37 --- /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.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 (#83268): https://edk2.groups.io/g/devel/message/83268 Mute This Topic: https://groups.io/mt/86793355/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-