From nobody Tue Feb 10 01:16:24 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+80226+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+80226+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1630673765; cv=none; d=zohomail.com; s=zohoarc; b=TStJD7tMd1dZp8LcG6VEq139LaL2dZ7thEjdt7NzfPw7/iyXz0euEh8itxwJVuaLMNwQKRqirylqMv4q7kUfuESjEQgZrIA5Na+rlrpcVOA5EOmOZrdTjCYipMv8SINobFxivMOS4uv3zHTlUBQ7N1TUuUm9xzashYNfU7tu1AE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630673765; 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=KhprjmSNCo4hCFytA7rNFZVaU/mNfoz4B9X+QXYlTlw=; b=P8MRdeUqkKcdOKRcffp+T/DaE2piMGgdcYXmsIUBOyihF+JtlAfW0j3Ft6gUdrtIGIN8SkC3Vtc3uxMfFBwqxzDef492Hw62+zrMe4sbhkh4TYI7ngGmVa5Tvi51koMgRyJRL1+OsAqgHCgcIJUW8i62VbjtoPI/3Vzm/PFJ8lM= 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+80226+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 1630673765039779.1650983607557; Fri, 3 Sep 2021 05:56:05 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id bhY6YY1788612xJL8ipICiES; Fri, 03 Sep 2021 05:56:04 -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.web08.3790.1630673764037606876 for ; Fri, 03 Sep 2021 05:56:04 -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-171-6RVeRD9NMU-AIUPK8-vrXQ-1; Fri, 03 Sep 2021 08:56:02 -0400 X-MC-Unique: 6RVeRD9NMU-AIUPK8-vrXQ-1 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1E998802947; Fri, 3 Sep 2021 12:56:01 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D632260C9D; Fri, 3 Sep 2021 12:56:00 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 1CF781800997; Fri, 3 Sep 2021 14:55:33 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v2 13/19] OvmfPkg/Microvm: PlatformPei/Platform: add id. Date: Fri, 3 Sep 2021 14:55:26 +0200 Message-Id: <20210903125532.393574-14-kraxel@redhat.com> In-Reply-To: <20210903125532.393574-1-kraxel@redhat.com> References: <20210903125532.393574-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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: NMQSBONvQl4ingYDozXRWAPex1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1630673764; bh=dVMwR3DnGWms5EurKJp+GEuxhtl2iyH5y22dxq1GhFo=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Ea1DlY5gqT7vV4oDLNpWitIBKyJdieIad8qGK2VPLCcfvIUK5Qdct0FfkKYjH9+XzCc oF7kk8f4LiUP8B1/3EsJRfdNdQtjR59EC0Fr0vqB7Nl+E5DmQ0cjq5CQq2/k1Q3WV5J0L JPiOnbERSkyuN73CZgVnUkIXRPZ990oQouY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1630673765662100005 Content-Type: text/plain; charset="utf-8" Add + set microvm id for PcdOvmfHostBridgePciDevId. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3599 Signed-off-by: Gerd Hoffmann Acked-by: Jiewen Yao --- 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..ec1e1e0cab1d --- /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 (#80226): https://edk2.groups.io/g/devel/message/80226 Mute This Topic: https://groups.io/mt/85350770/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-