From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.79]) by mx.groups.io with SMTP id smtpd.web11.21030.1594736944110498140 for ; Tue, 14 Jul 2020 07:29:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=g9lzxTDw; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.236.79, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j7PbELE2oXg6Km2BYU6ITsaZoVO5NCD4G96AWFWWEkwmm2gIVbCS6WYeOnwjAKlXyOUwFoKahI/VeZAYaYOdTcnsnbvSklY8hpr6ioQJl8bmEu24CBnBjC6/dI0ns3v7ep413ouAmHzZjnhfXsvLaCPPFcdEYgCzqHL146kVVxe6q+9WafnLdInHwXM3aBk2QI06t9B20/W2uHjRypibsJndHUX3Yg0m94V4Db5znqgQgxSgaTTql+cJmtKKj0ogguVlTKeK3uoxUqyOSQSM8eTibT5o3ni7uDj7T9zdUWesrlSfrSpZb7g2452r8G00DI+ZhbLPnGQuBDjuCPoPgw== 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=iUIg1b4EwDhKpEO96e51MuPrwJUs/s5zD1/37hv4dng=; b=f37FjbWxtruwKF3Xe5Ukz0KIKuQiBTDuYXeDletZvQ00uL9FG45Aeui0s0OmmeDo4SJImg9TInbhdXQiJWFF6ydPvM1M7x2YnLpnXqehZGEegBMQ/Vh140HjZevS22XvoMHviGvEImqpDcexf3h3vu4UN7OU9AP3LU31RNPUUO/wX0USxxk+i2PbGbXO8RXeFx+Q1voNPuOdQoh4cFsL8DXfux1LwWQjpO04OTMj7+5fkCXHG3jxQPfnYkCPPyLuA9FHjnuB2kjoVy1kLH7lgtlhaweZbHTBkzbcS1ZhtecRmSoIaHqWSaw6Y91xl19DxCUuFmqw/7VKFpqyFs3DOg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iUIg1b4EwDhKpEO96e51MuPrwJUs/s5zD1/37hv4dng=; b=g9lzxTDwz/vZIIx1xbG41jZsdyQ9O8bvZHqIgMR+d72GLWllLJccYX831bf8sKPL1L9aoHY0xHzE4eJPQlJBIX/HGLNlVRC7q1l6XiEgx3w4V3JImXiA7uR9X8Wrq/PJp8XEhxbuddQnaQQORMEpMg/XepwMvxz0i391J7hUOvk= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) by DM6PR12MB3177.namprd12.prod.outlook.com (2603:10b6:5:187::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Tue, 14 Jul 2020 14:29:01 +0000 Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::25ec:e6ba:197c:4eb0]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::25ec:e6ba:197c:4eb0%8]) with mapi id 15.20.3174.026; Tue, 14 Jul 2020 14:29:01 +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: [PATCH v10 02/46] UefiCpuPkg: Create PCD to be used in support of SEV-ES Date: Tue, 14 Jul 2020 09:27:33 -0500 Message-ID: <7e7b57be598c02f85b1c7d95fef7c2301eb1ccbd.1594736896.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: X-ClientProxiedBy: SA9PR03CA0012.namprd03.prod.outlook.com (2603:10b6:806:20::17) To DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) Return-Path: thomas.lendacky@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from tlendack-t1.amd.com (165.204.77.1) by SA9PR03CA0012.namprd03.prod.outlook.com (2603:10b6:806:20::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22 via Frontend Transport; Tue, 14 Jul 2020 14:29:00 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bb5637f6-95da-4a8a-d3ca-08d8280240c6 X-MS-TrafficTypeDiagnostic: DM6PR12MB3177: 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: BCL:0; X-Microsoft-Antispam-Message-Info: NZexbMs3vpmxucI6KMxnNTkRclR5N+5Y2sbTwDBP6ArRlEqTjYYdonDqZm0ga3exLHnem3njuXnNXXx/hCZpFH4KFZI5evxgndrB9dF5ZoI2/vCmiSyNVkBNidMH7JM/RwVNR4j5wRFtC3LWdCTVJCgvCyirukg/J3Z4fpJadR3a4bwO00B8sI2SjBdBbWROpN9HgJ1/WWZ+62nxrHzUkPOnod5grormRObxo/7C9gyIB3yqHUJqrIMbYBR4qv2TXWi3w28tXbAcrmOzEw9CtIYofaDoU8PXPf/BtPTOELzzqDgp7iojzBbhN9LcLEvg7KUmDG9R7JUPPjPO6sR6/cthgIyVhtHJIDvuRkd4AU4Qj/P1OBSPx7qMZxYutJFGPPABIWdNOls4C3b9wcNMiJ72FhaDODfKqQ8s4KEAfBj6pow/kodi0iMwUAHJksVylT6NTfn479LNV1/7zwDBWA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB1355.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(39860400002)(136003)(346002)(366004)(376002)(86362001)(478600001)(8676002)(54906003)(6916009)(2906002)(8936002)(956004)(6486002)(2616005)(52116002)(966005)(7696005)(66946007)(4326008)(6666004)(66476007)(186003)(66556008)(16526019)(26005)(83380400001)(5660300002)(316002)(36756003)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 4mHyuUMXQrpct8efskBA+fIQp3iRrzPy9gVmiBesXzAlhMUuY+El2tjc0P2Z+MThEjJRb2T/nkdlp3f3WynHPxePxkg4X6kWwMRs0Jwn16NftZ8JlrAecuNxax2SYgK0iy+T6hekV6xPq+fQd8Y3sxiq18B9GIchRlXdk6BjHMQ5mvUSd0+B2JqzHyeSmJi4SHbTSACNwayHpGdVvwfMagEl2ycIlZLjPC6cwwSAgXoAogFrOFCkVEzkLnCDYqncsyNGwdwj+PHJ4X+PUCgURfNbO2WzSCNINeNEsxSLhb5yGglGEscLTcgkktv8TnRi9tfpefR1oUbA3K3R6qvFE+M1ahcZIgKrW/PkKfVjXB3+crucTFjXcp0HDSD35N5Q4sf2J/AzjMXHOVAzZTAV1jNrvK06HSqXCPvr57BrQeAWBr3PUzGojwk3pF+pn68lDutOAlis8ni5cR2+4/HvgafLOtxokAQrJ/jrONjwFOw= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb5637f6-95da-4a8a-d3ca-08d8280240c6 X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1355.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2020 14:29:01.7721 (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: MC9bgYeTCqKQCqrEYZjR/bBXcO4QJDF/UtaQ+NKC36/AUVjAgYMywg3rrawWJBOSuGC+et5koslpitOeSwUHPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3177 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 762badf5d239..df5d02bae6b4 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -370,5 +370,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