From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web12.956.1589925091268137670 for ; Tue, 19 May 2020 14:51:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=ScYX6B4N; spf=none, err=SPF record not found (domain: amd.com, ip: , mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QBfLFkKM+bIJAH6vNgFimVFKG7z85i14vtZPRWQE0xf7BnOKGC2nBO1f9WdfiTAPTiAe+69YcZ3XLMxMN5WfHfoBTofY/P5rQPtkI3nRrI2o605wMc+GFW09l0Qdq5czcsCxM6R1IIQSeT1BPzQmIsBPfN9s4Mti/ldZ4avmFjSHqFA1Xtb1CDgJAcadfGTiUyAM4XRTBs6bV+tn1+8geNrdeD+zcJximG6K/TkpXmH74SRyHFLedaTcFssTYZSrPyM8uqf6MxPI+PHnG4mG9cwLtyqUibWohySrFoKYaK5W6KW1JhKxjW1HYL/7RUQVuy+SgCQyxbS09Qur75cNRA== 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=romRUZDQ42NjMy1cHnfhmPsUh6YlACPdpxmvXAReJRI=; b=m2m5bzGzX3ylWLQ0HCxEoLrtnaWHItzI0ZaG42mrw4+7iagWr+WPCCCyXu5shsgQJha3x+iyuY9r3pHbTxiZivQjHMz6yaktDdRS8vZLSzKbqZoDZ0FMsUWrhdNZ8QaSwO6pCPNuCGGsXfhTc+EXh+vjVi20vRaIZ9UFVjbWQEyub9DLpcUeCoi3JD53kVi6RrWP8ix9+N9F2j6/hUTmg7YIal9654/c61bmK++aEwOlucmb3gNGhweY3o/d9Im2pA1RZe5iefCcoUgUW2wwKEKsPBdJ4+aM/5UJosqn3SqNiLy07/AorWKDJ344pFcCJI9tBGPlOv+u8Is4/5fxBA== 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=romRUZDQ42NjMy1cHnfhmPsUh6YlACPdpxmvXAReJRI=; b=ScYX6B4Nav3zXLnEfnOuHF/gfqOufBugiMo3oTgSSLp1LT/UIDNQlrSKbpl7A8RAjKdy5Qj+eUDN2flYJf/Im9x9jeciGfagaBpUVWNd25cyUAaUZUIX1Q+MiHi5cO2/gSZPLWskFZpQzdVFRXJY3uiTZWs7bKVfaW4hHcxnPxc= 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 DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20; Tue, 19 May 2020 21:51:31 +0000 Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1%10]) with mapi id 15.20.3000.034; Tue, 19 May 2020 21:51:30 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Michael D Kinney , Liming Gao , Eric Dong , Ray Ni , Brijesh Singh Subject: [PATCH v8 02/46] UefiCpuPkg: Create PCD to be used in support of SEV-ES Date: Tue, 19 May 2020 16:50:30 -0500 Message-Id: <0fcf90a82f791cbb8b72e41bac6820c5dcc03f72.1589925074.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: DM6PR11CA0048.namprd11.prod.outlook.com (2603:10b6:5:14c::25) 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 DM6PR11CA0048.namprd11.prod.outlook.com (2603:10b6:5:14c::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.25 via Frontend Transport; Tue, 19 May 2020 21:51:30 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 01103022-a3b6-4b29-eee0-08d7fc3eca31 X-MS-TrafficTypeDiagnostic: DM5PR12MB2504: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 040866B734 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ELyPong3rpO2IKI4+QseMWS4R8jPWyiXx/7/BxQIxpycLdRvnIc4sJ/oTQs2ZCPCVNc/1e0rvXbWyUmBmpaH//lwxeOUXAVGKazzgHzNneocS6807CDlux0w2QzXzyg5KZkwNfHvVkhbk+NUeiCPDQDKiFLqI95MtFCS4kt+z2pTZLbpYsBeC2ih5Lh5GuLSXPwMHCc3oLZbTX5Vw6Kw1IIGOJUJBZzNM4exJc8WtcfYJ2vbGOER0ka2VJs5LK+3/zXUlkR21MpNog9YNLjQp/cCBQdMdB6Dl4Tyzr2iLDXW6XteNsd2A28yhJew4io6DboaoeFYiWAzSUwSfiWjjh7zeoEBfxJxE/sheNUm+CpbKZt4G/V1LVYwYhbGfjpesSUzu4PEJcDVi/eJvtTHdIGNkqCy/oO65XCR8v3CDG653rnGIkJwjv2ixD1TEf+5rFXCnNJVy9kCygZs1voOwVpc+N7p4nHuphd7S32J1CDNN1HIPkDVzTvqoomCvKpsDyEP64JlY9heATXBpJFSqNs6pQEZ4Xmw8DjtoVS3dzRMVIuAatjWXIIGZ2zi1qEZJNgwSZI9Nigy/+WpYKWTGQ== 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)(376002)(39860400002)(136003)(346002)(396003)(366004)(316002)(86362001)(2906002)(54906003)(7696005)(52116002)(2616005)(956004)(66946007)(66476007)(66556008)(36756003)(26005)(16526019)(186003)(4326008)(8676002)(5660300002)(966005)(6486002)(8936002)(6916009)(478600001)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hpMiLsEcJmcX38Gjrz0AEUZMutsl5yAGZRwo2uOivAAEskrU1YtUi0ilfCSinHztSupnMR5v7s+07t0qg4C4yo1yAiSAS0bNFIiaKdgJsM7Suc+iMP6MalIr7kozPVK2pKR0PxAPTqPmlxUKiKJrxqNQY63uMJphBa1VQbCnps5vHCFd3VNtbW5txtE6k86AUXxj/vu36VyjoZXtH7/Ie1HZEkZOQd1TnwAw0DShlfBSGkKl4wvZdF9BxufLmleNdZNBC7RROuj0oKsyuAHYRH3LF2DPPvjvAf8oPnx4gEhGlE4f7GSxIp4T0gBxUTy4UxmEq7hkjUxVkLqwdKqhxoZAEbG5Tps27ZU3dmfQqCzLnuwOMVMOtDHIH1ThYYjXmdM7PWSzSk3AEGBPFcYND5qIAUYlsRIQDlxLySDV2xErYfQ2VJnkRqAGCn5eJpALyQabkP4oF0Qp/NPQMDk/g7odgA5SIReRt0OBovJcvfI= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01103022-a3b6-4b29-eee0-08d7fc3eca31 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2020 21:51:30.8385 (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: T9V5sCim/WzwaijJTSSe18SQ8/ogmr/cdAh6tRf5lpc+uu2tFeVt5AyCfdRyM9xD6gYUryC2dBYw9qqN1ccmFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2504 Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 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 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|0x60000015 + ## 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 @@ #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApStatusCheckIntervalInMicroSeconds_PROMPT #language en-US "Periodic interval value in microseconds for AP status check in DXE.\n" #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApStatusCheckIntervalInMicroSeconds_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." -- 2.17.1