From nobody Mon Feb 9 07:06:32 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+87332+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+87332+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1646707009; cv=none; d=zohomail.com; s=zohoarc; b=Y/lmb4SWvVI9DvBUSdhNB4sItPkIKc4n07CpSpP8ihM7rT2Qz6ASZg/5Wl8hUV7zbS2cly61wEm4asruBiOumD/9b7XQ+hZ9rQHOTMST6Amuj7ss2Tc2QdkUWWVv+QLK7RZZRZRG1B4lttnXtqOaR6InDMXuKFc10WIRWp/RQkg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646707009; h=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=che4v50+oF7sCKkUhRlsxdm1fbrCHidjv7kWyl7J6R8=; b=hPawh8Q/d2jBUawvGXNP1evgZONzrvN4OHDLxfIRhvH+BgltltH+zbXjgsgB9DD0iMYm+eJNjJ9gJhBFYj/LBRst2m7ogZQ17/MAXyG5rhvuvNR9G1Vwr6uuMKerihFb3wCetNXNatXX9CFu5WbsIjXPtfjjM8+9QKCbdjD46mc= 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+87332+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 1646707009648829.7966742898172; Mon, 7 Mar 2022 18:36:49 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id tiO7YY1788612xOBxR2VwJ3s; Mon, 07 Mar 2022 18:36:49 -0800 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.4209.1646706992182166839 for ; Mon, 07 Mar 2022 18:36:48 -0800 X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="317801056" X-IronPort-AV: E=Sophos;i="5.90,163,1643702400"; d="scan'208";a="317801056" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 18:36:47 -0800 X-IronPort-AV: E=Sophos;i="5.90,163,1643702400"; d="scan'208";a="553432710" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.238.2.184]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 18:36:44 -0800 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Ard Biesheuvel , Jordan Justen , Brijesh Singh , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky , Gerd Hoffmann , Sebastien Boeuf Subject: [edk2-devel] [PATCH 05/14] OvmfPkg/PlatformPei: Refactor MiscInitialization for CloudHV Date: Tue, 8 Mar 2022 10:36:06 +0800 Message-Id: <3e9adaab701ee84a311d8ac712e96702212add48.1646706302.git.min.m.xu@intel.com> In-Reply-To: References: MIME-Version: 1.0 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,min.m.xu@intel.com X-Gm-Message-State: i3hgvVW88oh1vwWyiqT4hCIqx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1646707009; bh=Yju7scdwPUfHj5rpoSb7zcqh2A0EezHwWrCSPIAiidg=; h=Cc:Date:From:Reply-To:Subject:To; b=N1s5mRQ8SPLzsEfkA70jDdUfbdS4HQgd5+8/jPAunoCIiczZMkADSd3BzjvcKtExT5E vhVuVnAUvB69Z2oL8c0sIyBFj6DTTUxFUdBnaKStiL/QWm7T2EZdN4oR2siBLGB3Qn1h7 1ktIdLKridoKxac2aBBAWbEh20/ooTQLrFg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1646707012187100011 Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3863 Refactor MiscInitialization for CloudHV to set PCD as other platforms do. Because in the following patch we will split the functions which set PCDs into two, one for PlatformInitLib, one for PlatformPei. Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Brijesh Singh Cc: Erdem Aktas Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Cc: Gerd Hoffmann Cc: Sebastien Boeuf Signed-off-by: Min Xu --- OvmfPkg/PlatformPei/Platform.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index af9e72cd7a98..3e0c56db57ed 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -380,13 +380,7 @@ MiscInitialization ( AcpiEnBit =3D ICH9_ACPI_CNTL_ACPI_EN; break; case CLOUDHV_DEVICE_ID: - DEBUG ((DEBUG_INFO, "%a: Cloud Hypervisor host bridge\n", __FUNCTION= __)); - PcdStatus =3D PcdSet16S ( - PcdOvmfHostBridgePciDevId, - CLOUDHV_DEVICE_ID - ); - ASSERT_RETURN_ERROR (PcdStatus); - return; + break; default: DEBUG (( DEBUG_ERROR, @@ -401,6 +395,11 @@ MiscInitialization ( PcdStatus =3D PcdSet16S (PcdOvmfHostBridgePciDevId, PlatformInfoHob->Hos= tBridgeDevId); ASSERT_RETURN_ERROR (PcdStatus); =20 + if (PlatformInfoHob->HostBridgeDevId =3D=3D CLOUDHV_DEVICE_ID) { + DEBUG ((DEBUG_INFO, "%a: Cloud Hypervisor is done.\n", __FUNCTION__)); + return; + } + // // If the appropriate IOspace enable bit is set, assume the ACPI PMBA has // been configured and skip the setup here. This matches the logic in --=20 2.29.2.windows.2 -=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 (#87332): https://edk2.groups.io/g/devel/message/87332 Mute This Topic: https://groups.io/mt/89629677/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-