From mboxrd@z Thu Jan 1 00:00:00 1970 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.175.1631794864819391080 for ; Thu, 16 Sep 2021 05:21:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NyxuElsd; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631794864; 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; bh=x6RzwBUngptZfUH+cP49XhmQiDM3zRRZ2pGXl0o3SeM=; b=NyxuElsddXQO0LBIujr6uFbq0iJpwrLDmRNQu0itDYo98QlNc0Bj/ao5wBdpJacSZq3ua1 RWWgiB6ZpBWKyGS7iVR0v05SpZUcvbFTnMmeMpwvbbGYmLtmTZ/BQNXXSKKeuWosIywU+L m5H3GsQLuDaozebIS/yZH71Bbl71lBI= 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-499-Wmlq_ap4MH-dW4jfmJTy-Q-1; Thu, 16 Sep 2021 08:21:02 -0400 X-MC-Unique: Wmlq_ap4MH-dW4jfmJTy-Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4C72D824FAB; Thu, 16 Sep 2021 12:21:00 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0C76B1972E; Thu, 16 Sep 2021 12:20:29 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 670CD18000A9; 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 Subject: [PATCH v4 00/20] OvmfPkg: Add support for microvm machine type Date: Thu, 16 Sep 2021 14:20:07 +0200 Message-Id: <20210916122027.2352393-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit This patch series adds basic support for the microvm machine type to OVMF. Working: - uefi shell @ serial console. - direct kernel boot. Comming in followup patches: - virtio-mmio support. - pcie support. Usage: qemu-system-x86_64 -nographic -M microvm -bios MICROVM.fd ... v2 changes: - pick up review tags - add bugzilla link - fix timer configuration - fix reset shutdown - add readme - add maintainers entry v3 changes: - pick up more review tags - fix CI failures (https://github.com/tianocore/edk2/pull/1949) v4: - drop runtime "detection" of microvm, we know that at compile time. Gerd Hoffmann (20): OvmfPkg/Microvm: copy OvmfPkgX64 files as-is OvmfPkg/Microvm: rename output files, fix includes OvmfPkg/Microvm: no smm OvmfPkg/Microvm: no secure boot OvmfPkg/Microvm: no tpm OvmfPkg/Microvm: no sev OvmfPkg/Microvm: no csm OvmfPkg/Microvm: no emulated scsi OvmfPkg/Microvm: use MdePkg/Library/SecPeiDxeTimerLibCpu OvmfPkg/Microvm: use XenTimerDxe (lapic timer) OvmfPkg/Microvm: add header file OvmfPkg/Microvm: PlatformPei/MemDetect tweaks OvmfPkg/Microvm: PlatformPei/Platform memory map tweaks OvmfPkg/Microvm: PlatformPei/Platform: set id. OvmfPkg/ResetSystemLib: add driver for microvm OvmfPkg/Microvm: BdsPlatform: PciAcpiInitialization tweak. OvmfPkg/Microvm: use PciHostBridgeLibNull OvmfPkg/Microvm: wire up serial console, drop super-io OvmfPkg/Microvm: add README OvmfPkg/Microvm: add Maintainers.txt entry OvmfPkg/Microvm/MicrovmX64.dsc | 842 ++++++++++++++++++ OvmfPkg/Microvm/MicrovmX64.fdf | 462 ++++++++++ .../BaseResetSystemLibMicrovm.inf | 37 + .../DxeResetSystemLibMicrovm.inf | 40 + OvmfPkg/Include/IndustryStandard/Microvm.h | 19 + OvmfPkg/Include/OvmfPlatforms.h | 1 + .../PlatformBootManagerLib/BdsPlatform.c | 42 + .../ResetSystemLib/DxeResetSystemLibMicrovm.c | 49 + .../ResetSystemLib/ResetSystemLibMicrovm.c | 89 ++ OvmfPkg/PlatformPei/MemDetect.c | 5 + OvmfPkg/PlatformPei/Platform.c | 18 + Maintainers.txt | 6 + OvmfPkg/Microvm/README | 54 ++ 13 files changed, 1664 insertions(+) create mode 100644 OvmfPkg/Microvm/MicrovmX64.dsc create mode 100644 OvmfPkg/Microvm/MicrovmX64.fdf create mode 100644 OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf create mode 100644 OvmfPkg/Include/IndustryStandard/Microvm.h create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.c create mode 100644 OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c create mode 100644 OvmfPkg/Microvm/README -- 2.31.1