From nobody Mon Feb 9 20:10:25 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+79997+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+79997+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1630403893; cv=none; d=zohomail.com; s=zohoarc; b=iConwcBwt0n5R9WsE8whpG+TB+huOAl217lY3P6vkPhWMdhOWBLcjOYMAbNUXbsfZWGeqNm+nE9YmF/DjOwzLpfHVGS+WwjsTsfDIlpIzoQLSOxy+nzK6FFo0czIcZdQCwqt5pE6lYEv+r+QLdP8bqlAk3fKP1FeoUONBhMq2+0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630403893; 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=Tml/mGtHWk4tTWlz0BsvkbPCRhPw0m31u3tjZzBOQoc=; b=oFcMM/NqLEjUhCfekojdCT0z4Io5uwHN+l5vX4zylfP3k7RzU16A1wAUowGH/9kI3i2N7aEswwzukQ3R5Gk5cE7GvLO5/QAR+gx8MS1JRqRxK6k7EW4MmHhb68DbO4wnW4qq5F5XA9vTvfmfMmRRmaBeffA3MWMBKJ3mvJTKNPY= 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+79997+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 1630403893376821.9762421007945; Tue, 31 Aug 2021 02:58:13 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id qREZYY1788612xzeP5tSs1om; Tue, 31 Aug 2021 02:58: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.web11.3412.1630403892398901580 for ; Tue, 31 Aug 2021 02:58: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-521--jmSAeKTNFyoEFWuo4NZIA-1; Tue, 31 Aug 2021 05:58:08 -0400 X-MC-Unique: -jmSAeKTNFyoEFWuo4NZIA-1 X-Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 08A3A760C0; Tue, 31 Aug 2021 09:58:07 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 028721001281; Tue, 31 Aug 2021 09:57:58 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id D2EAE18009CB; Tue, 31 Aug 2021 11:57:14 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Anthony Perard , Gerd Hoffmann , Ard Biesheuvel , Jiewen Yao , Jordan Justen , Julien Grall , Stefan Berger Subject: [edk2-devel] [PATCH 13/17] OvmfPkg/Microvm: PlatformPei/Platform misc tweaks Date: Tue, 31 Aug 2021 11:57:10 +0200 Message-Id: <20210831095714.2834550-14-kraxel@redhat.com> In-Reply-To: <20210831095714.2834550-1-kraxel@redhat.com> References: <20210831095714.2834550-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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: vr2dY5aKc7ILw0d2Amxgll2Nx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1630403893; bh=u7JAt4dWTn6LQZjJXEPL49UnCZGwY4xahURLvVlFe7Q=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Fm7kDWqw9FeBlwaJQcCYOr1uC4ewuM14AL/wZMt9yiB1dFzar7nUjVPyHZt44viIsfq gU7Iyjmo2yWk1yCcq5/1/s2lqrFtJeIAH3HAMbUxDR10AHzLfpF+wcLnUSPmK+fMvc3nc YlTSRrDTslCO+qSY+8Rylq6CvBfVfiOA1K0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1630403895097100005 Content-Type: text/plain; charset="utf-8" Add + set microvm id for PcdOvmfHostBridgePciDevId. Signed-off-by: Gerd Hoffmann --- OvmfPkg/Include/IndustryStandard/Microvm.h | 6 ++++++ OvmfPkg/PlatformPei/Platform.c | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 OvmfPkg/Include/IndustryStandard/Microvm.h diff --git a/OvmfPkg/Include/IndustryStandard/Microvm.h b/OvmfPkg/Include/I= ndustryStandard/Microvm.h new file mode 100644 index 000000000000..ba5ce3ecfb98 --- /dev/null +++ b/OvmfPkg/Include/IndustryStandard/Microvm.h @@ -0,0 +1,6 @@ +#ifndef __MICROVM_H__ +#define __MICROVM_H__ + +#define MICROVM_PSEUDO_DEVICE_ID 0xfff1 + +#endif // __MICROVM_H__ diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index d425a5c429c6..aeb39595aa28 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -364,6 +365,12 @@ MiscInitialization ( AcpiCtlReg =3D POWER_MGMT_REGISTER_Q35 (ICH9_ACPI_CNTL); AcpiEnBit =3D ICH9_ACPI_CNTL_ACPI_EN; break; + case 0xffff: /* microvm */ + DEBUG ((DEBUG_INFO, "%a: microvm\n", __FUNCTION__)); + PcdStatus =3D PcdSet16S (PcdOvmfHostBridgePciDevId, + MICROVM_PSEUDO_DEVICE_ID); + ASSERT_RETURN_ERROR (PcdStatus); + return; default: DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, mHostBridgeDevId)); --=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 (#79997): https://edk2.groups.io/g/devel/message/79997 Mute This Topic: https://groups.io/mt/85272568/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-