From nobody Tue Nov 26 00:47:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+63844+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63844+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1596829203043998.2686725882764; Fri, 7 Aug 2020 12:40:03 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 9MqsYY1788612xqIxHEEFUlP; Fri, 07 Aug 2020 12:40:02 -0700 X-Received: from NAM04-BN3-obe.outbound.protection.outlook.com (NAM04-BN3-obe.outbound.protection.outlook.com [40.107.68.50]) by mx.groups.io with SMTP id smtpd.web10.4129.1596829202070011122 for ; Fri, 07 Aug 2020 12:40:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FG3mLKH0oQHX23FkPxO/Ihp9wFNc8oHFTfyS2INFmx9sCDHDZ/xixce5ye1dYlANsT7dYOyIPaD2peBPGRNn6BB4+1Yfi1Psi5Oaz5/Ygv7avkoCVnuYPUwBTvOoTjVbAzA8KteTumB2TOtc3QPtFwkrp4sGEH73TtxJrWHD1ZfEXNacPeekLDzlzMxIxUqQZgsvv5/pYZv3GeLw25O+ftF8wCqPz/aABSsKsK9xtSyCNIEcJZKgBbb0kqZNEzKMpsRCv3L32QAKcPbM0BD1epCzk6iJjiBV3W3s9xaf7t+eJ7QEvQGnPpsrbXL00zToNpzIS8oFaJyxXTypG8OUXw== 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-SenderADCheck; bh=OINC9z6p6GoZ2IcFziq+cbHUiE4DLmJwvKvylX9bN5I=; b=VK2DEqcPEZEwJxcTrSZ4FzPe70uLFZQ9ZpL7SlznWen5WYRAB8B4eVR4SXeD/YxWPSHn41uUKj6Ht0EqffDrI9aW7oIFkE4Xv8bogBAHmqovjWt5KkiEarLpfkWyBqKLpaDkngPUQu1qTYW4ijpibE1I314E981xO85dDd7pXSXLpXrN3ffOyrknv/5A/UPffRrSa57Ne8koCJBai/SoV9XFrnhUW9014q6C78ob5h71msaQzngjTpZC8vESrfslcFtQ6rLpIPeFrY+u7ggmpNcNO5FcLRGfxvLYLV2m+WXKFzSd2DJL9/P9cjLa2ukEP8y8WEdBYElaeHphMCdkJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none X-Received: from CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) by CY4PR1201MB2532.namprd12.prod.outlook.com (2603:10b6:903:d8::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.20; Fri, 7 Aug 2020 19:39:59 +0000 X-Received: from CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b]) by CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b%5]) with mapi id 15.20.3239.024; Fri, 7 Aug 2020 19:39:59 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io CC: Brijesh Singh , Ard Biesheuvel , Eric Dong , Jordan Justen , Laszlo Ersek , Liming Gao , Michael D Kinney , Ray Ni Subject: [edk2-devel] [PATCH v14 02/46] UefiCpuPkg: Create PCD to be used in support of SEV-ES Date: Fri, 7 Aug 2020 14:38:47 -0500 Message-ID: In-Reply-To: References: X-ClientProxiedBy: SN6PR16CA0066.namprd16.prod.outlook.com (2603:10b6:805:ca::43) To CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from tlendack-t1.amd.com (165.204.77.1) by SN6PR16CA0066.namprd16.prod.outlook.com (2603:10b6:805:ca::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19 via Frontend Transport; Fri, 7 Aug 2020 19:39:58 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c3ed3e3d-814d-4b8f-d0e4-08d83b09ab8f X-MS-TrafficTypeDiagnostic: CY4PR1201MB2532: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: C/DEw2MvDX1h1D94xMCQRJKlVtTRo5Is6r9c6bTpMQXi+fziykOhVu6cRtPhroH1+cjIxoRsSWsnqZ28TtoPwAV2RuHH2xCZX9fkgsTQlKYJTU3/njENBiSWR/BlcRr0bJxcIpodCk+cg/DLl+svYdtXKRHwDnhBqoULjZN4lamTSZ6wSjEC7+BUoI0sjCfeKukXZCxAQ7Ynv7EDdZvJB2GBwYz2Ixs75kl3LV5dRvCTkMsjCytPkGN5+uxpGRRSXiGuMjFoM4b2spRyJCLmATVbeLUsZ1PrgbrqjuYfVMWn3NVoND4xk2i2smRgLSyi7JcajBNlVwavsuagThz3pKo/VQ6fNmZcNZkQsAY0iT6v/vX8+Oz9B6bzT5Yjw4McGjUG+bgYS4klYKwcZQ/Ts++PMopF809l3IbxwX7pHVtKd8kgWzxhquyAbB8bgH+YUHFLf6u2dfpOv+mHfsUjhA== X-MS-Exchange-AntiSpam-MessageData: hr+3KwwSIcHhKJJEzVB9Sld5sv8f0b17ObosN+V47bVgmJsifjG+Z+7Y6Ty+wFRtd4jEb89eczIfBms0QcQHHpXAF9kiql0jl+SQUZWSPsUfQhDkW+UbN2/09/xxwnwEwzAC+8+6I7TvHBcFZl4cYcomGB72SHE9nMa0mv30vLkO6POvGqoUbi7Zg+fl7cObr1se3T18HhQa3ov66Er52FJBaZdOFdBD1Jz+NhJN09kjRf92hf/1pqfDM6FxxbkQmsy81UA199IVgaF7LCA7EILU4MxuqAIF7mFmO5OjARqVVoS51HWIu29b2+Sfi61ubxiwVxvGTsELbGg3H+/815FJbmQzbTn9u9uKPpIf43J+T+RTaJ1HqNxhlTikfVriPBFlreP6hzOAX4dQxzhtlRjJ+YwnT+I2iJQ+Q3RlL3EfKpojAFm/xXR/uBBo/sty8ujf3MWUDMR0bppAISoEo5Qv/bwANXH7ubVZfqt2cj3rXdYM8C5SNC6b0cMkdkMM9KY04icz0wBrzwVrt2yKqssYoDb0jvJIlf92sWtzeWcTyHC95XAh3OH2j2kwzKKKYlAAVuZo94OBi/2seWi9XwvW3294kwMqguT6GGDcew9SIqCCXzzQzu1hNDv6aaBpG1QQTsQtyYVNjdHxEkgiKQ== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3ed3e3d-814d-4b8f-d0e4-08d83b09ab8f X-MS-Exchange-CrossTenant-AuthSource: CY4PR12MB1352.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2020 19:39:59.3887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uMip3nsRzzHhIrG8e2KhVUEzGx3GpWgG+TdmLAl1vpL8gUojx2Ox/uMZIQ7EHUeavlHgkYmsuSGdbXutE68nTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB2532 Precedence: Bulk List-Unsubscribe: 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,thomas.lendacky@amd.com X-Gm-Message-State: x1OME8SF4zRGP0ixKaLVWhd0x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1596829202; bh=ZASxpU4KVYA79XIoVUlp2MKGpslscq8EDpNTxFKs+Vw=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=QYFF0WagCyN+vyENG7HHpD4MrevL9D/cIm8TSdGP4dbO3Ahq3gZZkytqfKTJldSngtV ipuuSEtojOWU9YqbKtHZPv0oW8JnWa8+m7+gvb2gEVdcX9lY2ZvkZkon5/4oi5bkFwKjp qmDnjcFTaiwwmZbMB2ilT3nZaZWxoaxE9Qo= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Tom Lendacky BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2198 A new dynamic UefiCpuPkg PCD is needed to support SEV-ES under OVMF: - PcdSevEsIsEnabled: BOOLEAN value used to indicate if SEV-ES is enabled Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Reviewed-by: Eric Dong Signed-off-by: Tom Lendacky --- UefiCpuPkg/UefiCpuPkg.dec | 6 ++++++ UefiCpuPkg/UefiCpuPkg.uni | 3 +++ 2 files changed, 9 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 8b2e03d49d07..d52912ddca1f 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -373,5 +373,11 @@ [PcdsDynamic, PcdsDynamicEx] # @ValidRange 0x80000001 | 0 - 1 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x0|UINT8|0x600000= 15 =20 + ## This dynamic PCD indicates whether SEV-ES is enabled + # TRUE - SEV-ES is enabled + # FALSE - SEV-ES is not enabled + # @Prompt SEV-ES Status + gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016 + [UserExtensions.TianoCore."ExtraFiles"] UefiCpuPkgExtra.uni diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg/UefiCpuPkg.uni index 1780dfdc126d..f4a0c72f6293 100644 --- a/UefiCpuPkg/UefiCpuPkg.uni +++ b/UefiCpuPkg/UefiCpuPkg.uni @@ -278,3 +278,6 @@ =20 #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApStatusCheckIntervalInMicroSe= conds_PROMPT #language en-US "Periodic interval value in microseconds for = AP status check in DXE.\n" #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApStatusCheckIntervalInMicroSe= conds_HELP #language en-US "Periodic interval value in microseconds for = the status check of APs for StartupAllAPs() and StartupThisAP() executed in= non-blocking mode in DXE phase.\n" + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_PROMPT #language = en-US "Specifies whether SEV-ES is enabled" +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_HELP #language = en-US "Set to TRUE when running as an SEV-ES guest, FALSE otherwise." --=20 2.27.0 -=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 (#63844): https://edk2.groups.io/g/devel/message/63844 Mute This Topic: https://groups.io/mt/76056468/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-