From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.88]) by mx.groups.io with SMTP id smtpd.web09.115.1634144284321982374 for ; Wed, 13 Oct 2021 09:58:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=WCRbo6Eq; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.92.88, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PWkxoY8led0/QGe1iIhuRAExEj7kQO6uJPm9fous5IxGj+eNv+zrLOKnoAXiM19796bcuLwvmwZaEiGEEqYmvRwLPBhs+EZr6SVpRFmaElhIt9VkMRoAIFiDFLmNvULnj7CuzCdHI8cynuo+h4IPB0NnwGdPA0Zj0qJ3S2LV5wW/0kTLtbypZx0a+t51KsXdHoWXhjdPKnU8+A/anuqlMNgsOgIvt6skG0u0s6I7ZQMdGRQRPnjJJ/RNIdGeMfzBKAb5O6kuLKu6KwPmBAxUQbWE0mUD/JAsBjW/lNuSxZUSrmchVaSTG3c+K+OjwpmFnpII9IZkAz9NBWs1yV/yEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HY44Sh9NMsohzjDLbHm4LvZ8epz9mviz2PuMSBm0Vzc=; b=hx844gWMIDvcsWwxWjDfWVkrTaLm4RNHQwhcs7budbOLoWj86aXVIxRnZ4QfcurvUD/TAHWivdweGwbStII2PGrr383jBCCqGvJDAzUr1Dkyg74+L4GriKJYz31NfJ5GeIhAUMqtnrOXl6kNSPXuntg4ld6vaoOt4L2MQqjoBXWHKg8iMp5IZDuFwjnfXDBzvLlNJcrcpc8iFwn4mxKo/XLNDQxYpRdgO//2bBm3I8u9pk/vjO3ui8WrmbDDl8QD7GWUX3T6UiE2fW5Ex9BRngJdTcm7kGQSg1Z1UoUPa+9E7rgCSQkqw87EvknHakYPejmWB/Nif92vRRHtGiNX1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HY44Sh9NMsohzjDLbHm4LvZ8epz9mviz2PuMSBm0Vzc=; b=WCRbo6EqgFxdgxBItmNDXvbNSnkg4ql89th/Zt1n1JTaKdD3ChLwhQ+EmWlr/cVlsiYFKyT9OafHykv+w8nbxmvlaevcuH5/porFGF2PQElNXp7BU8HreFTPumslshI4mZROJsl37fza05SjD2fyGxcKOM+aGQ/g4sgqxB9kgSs= Received: from MW4PR04CA0031.namprd04.prod.outlook.com (2603:10b6:303:6a::6) by BYAPR12MB2663.namprd12.prod.outlook.com (2603:10b6:a03:72::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Wed, 13 Oct 2021 16:57:57 +0000 Received: from CO1NAM11FT039.eop-nam11.prod.protection.outlook.com (2603:10b6:303:6a:cafe::e5) by MW4PR04CA0031.outlook.office365.com (2603:10b6:303:6a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.25 via Frontend Transport; Wed, 13 Oct 2021 16:57:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT039.mail.protection.outlook.com (10.13.174.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4608.15 via Frontend Transport; Wed, 13 Oct 2021 16:57:57 +0000 Received: from sbrijesh-desktop.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 13 Oct 2021 11:57:54 -0500 From: "Brijesh Singh" To: CC: James Bottomley , Min Xu , "Jiewen Yao" , Tom Lendacky , "Jordan Justen" , Ard Biesheuvel , Erdem Aktas , "Michael Roth" , Gerd Hoffmann , Brijesh Singh , Michael Roth , Ray Ni , Rahul Kumar , Eric Dong Subject: [PATCH v9 23/32] UefiCpuPkg: add PcdGhcbHypervisorFeatures Date: Wed, 13 Oct 2021 11:57:04 -0500 Message-ID: <20211013165713.727815-24-brijesh.singh@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211013165713.727815-1-brijesh.singh@amd.com> References: <20211013165713.727815-1-brijesh.singh@amd.com> MIME-Version: 1.0 Return-Path: brijesh.singh@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae9e16b2-8ae2-4a79-8896-08d98e6a9b7d X-MS-TrafficTypeDiagnostic: BYAPR12MB2663: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7uK+OqZx0bNNtEQjJL8oTH/DCVPgTKg2B2bWKarphm03DxA4+JCeze/Tixf4hkkczJIYlVkU6T2hAKRzi1EKHHZNgvuee0/vanx0Xm+UVCLk2PG1o+0vsauGPy9jEXzsBBueqYGqGEolQKVszZXUJPJozuJS5BiWbhmRQNrBzjacEmlNUGuIDQc+k4bYZhtUIkqV8YI7q91q6oTDssAkAogzhvhOfsuKIx6SCDWVamyn+SCXoUxC0VRav6VzUvBfO+aKl+GrsxCubiskUdKQ3bX+wedNNHWaPJzKXlf946whEpjGeTBHpPC5DGSl4z02FaF3EKzu3hpqE4iPKBlRO5zjvo8hkVY1Y4eyjRzqs0eEuObFQKs2gRmZYSyKAnIvr38I7C8Ae4/o0WPNwp1PqoVs8m+71rDQTKPbLdx7l0M/luetMhmRoO6gDXADbv2fraH5ZK/BN0kqyO91EAt/XgTrxkQz9h8TIEwKCReMrcSgJP2DTkvHCl0FlD1DKbgxURfGUZYAX1Yn0bu1wh8GTSsaSXur51HEQsmrJPz6JEBjiUWVTiSCNRN39fGnIcxwXVwcorrOiW/L6Oi3ctRHb+2bMeOy02ZO14lviWMuig3JzrtbbdLLoraTDL5JyeNHZD24J72i++mmGl3fbUflhgQut1PBNsNGSi6UTUOSQSFV835tZCw7ddjQXx4quMoRimI7TjnhO/W2TisxaPd1iCM5+XkKPmfqoslof6CkWtUXj7FZiZ3XU3RFom6vxcI4WLl1NkGHti/lfX3LG0UKjATZ76gH2f09t08S03UIuczjjZn11PDyfTvS4G9k5YmIygyZxlxPZN8szXZ8H/yQTVlxVKfULA8lVuJ9hnvCaUc= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(36840700001)(46966006)(82310400003)(6916009)(70206006)(2616005)(316002)(8936002)(426003)(4326008)(356005)(5660300002)(7696005)(1076003)(186003)(16526019)(54906003)(81166007)(26005)(47076005)(6666004)(7416002)(36756003)(8676002)(336012)(2906002)(36860700001)(966005)(508600001)(86362001)(44832011)(70586007)(156123004)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2021 16:57:57.4509 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ae9e16b2-8ae2-4a79-8896-08d98e6a9b7d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT039.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2663 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3275 Version 2 of the GHCB specification added a new VMGEXIT that the guest could use for querying the hypervisor features. One of the immediate users for it will be an AP creation code. When SEV-SNP is enabled, the guest can use the newly added AP_CREATE VMGEXIT to create the APs. The MpInitLib will check the hypervisor feature, and if AP_CREATE is available, it will use it. See GHCB spec version 2 for more details on the VMGEXIT. Cc: Michael Roth Cc: Ray Ni Cc: Rahul Kumar Cc: Eric Dong Cc: James Bottomley Cc: Min Xu Cc: Jiewen Yao Cc: Tom Lendacky Cc: Jordan Justen Cc: Ard Biesheuvel Cc: Erdem Aktas Cc: Gerd Hoffmann Signed-off-by: Brijesh Singh --- UefiCpuPkg/UefiCpuPkg.dec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 9dbaa407c399..c979a0a90a0e 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -400,5 +400,10 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt Memory encryption attribute gUefiCpuPkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0|UINT64|0x6= 0000017 =20 + ## This dynamic PCD contains the hypervisor features value obtained thro= ugh the GHCB HYPERVISOR + # features VMGEXIT defined in the version 2 of GHCB spec. + # @Prompt GHCB Hypervisor Features + gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x6000001= 8 + [UserExtensions.TianoCore."ExtraFiles"] UefiCpuPkgExtra.uni --=20 2.25.1