From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (NAM04-BN3-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web12.473.1587577339915064264 for ; Wed, 22 Apr 2020 10:42:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=rX7VNiVP; 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=dsAMYJjnUU1nUVm/IVSPAHA3dFdgqUX5rt/CjVMLlPbo4wwh4eCfyUeMQXHDzuo/wBjceOBJLyNGgFdPeMHF8hOTE00ZVIzIKnJMXVZON17QMwxH8Ukpbc2JJKlXw5TTQiX+PMUh0O3nyT0szuS3DcsR8Xpodna35ocm5Y7jto0LFwdz6Q8skuqVVv/OpZunZl0LD1OxO2WiuYXQly2r0YAuo5yFmQDqJVVTpNX2K2PnB7wkhJELEPEeeM4ABdAU6XFDxJXI9U9tQLFiGAx2NYat4EJb0SAnO54+26jDlonR3dx26lmGB5J6o/YnpVo65OnwedpUH6YCziIHApMkQw== 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=bSy3yGuAOPszb/eYz7tH1Zaa/3gXirtqSaI0AyMfg9HSjoqitsCruotfudGJ63C+Tq6vp0N5b6ZB77uFbhKWdNJUZP4EKD0IOc51Esx6BcKL3Fp6CqnneGu3NIBqMAIXUsjya/58ZSO4LLzupYr5R2DZF8O8EyPcMq7SkZWFhay29pliIijlGDORk7ZJJiJ7fo+NGSJh4o/ON4RJhG7+xLNtbs5eUQKwvTFOunMpbGyw7sESxIlSg0fTsvBBV6xkGqy1+ekngmiWx9ES8u0pSa+qrTHbfuZznOlzh7CsdevXGjw1Kqr7QpWtlYymdMddI7XRyc0vJ3kNXQP9PxQqDg== 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=rX7VNiVPgBcIYS6LI507bqFZIK9IEt+BV3MxwDT5aJKjOM180DDJXegWvqBIAfRIFfE50XaiKng9Zp8JBmnsOhPgxIu8+MNO17RlnsE2U5N4WVFWAYODIkUHeJ+F8f6MqA8DFHPaIAfHRaflaOLtSJOcZTwhKtgxETmxj7M4epo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) by DM6PR12MB3449.namprd12.prod.outlook.com (2603:10b6:5:3b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.25; Wed, 22 Apr 2020 17:42:18 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9ae:cb95:c925:d5bf]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9ae:cb95:c925:d5bf%4]) with mapi id 15.20.2921.030; Wed, 22 Apr 2020 17:42:18 +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 v7 02/43] UefiCpuPkg: Create PCD to be used in support of SEV-ES Date: Wed, 22 Apr 2020 12:41:17 -0500 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: DM5PR04CA0060.namprd04.prod.outlook.com (2603:10b6:3:ef::22) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) 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 DM5PR04CA0060.namprd04.prod.outlook.com (2603:10b6:3:ef::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13 via Frontend Transport; Wed, 22 Apr 2020 17:42:17 +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: 89dba4df-c276-4e4c-97e2-08d7e6e480b8 X-MS-TrafficTypeDiagnostic: DM6PR12MB3449:|DM6PR12MB3449: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 03818C953D X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3163.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(136003)(346002)(376002)(39860400002)(366004)(396003)(66556008)(16526019)(66476007)(186003)(5660300002)(4326008)(86362001)(54906003)(8936002)(81156014)(966005)(6486002)(66946007)(316002)(52116002)(7696005)(956004)(36756003)(6916009)(2906002)(2616005)(8676002)(478600001)(26005)(136400200001);DIR:OUT;SFP:1101; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y58Y7c82WhzSbbYz9PuRHiBOPRUtofrPBG1MlZMGxDSf0qaoQbCbC5ZAAJt8OMeIZUwbK1tUviYpOtpBKIdkWmssgGVj2evnex6koB0TFOjHecOtiOSMhsGdHSp2dK3jvJpixqv280mJ9G1sVVqzuIx2ijk5AZzJN1Xk6F6sV8CHKBiE/Ivs01tMJzSXY5fEtHo9FgYjX+CUCNzeahRuQbjps3QEMp8F04hXDrV7L5F2K/UQgRE8RTvw6BZzKuqOnW+LOXgl33myosb+8P4jTnP98kI4TavF+J8mZDCfK79xY2Z3qofEq6buZEjTzPycZAs6PDP/RT7c86Ku6xsW9oIo7Y8Ld9KNVUnJNEvLhqhACj89LDMh20kcf7oAnGvwTjYkcv3aRgEFmx+j7sShv6OURdYurpi7Q+CB89Wld9amBi9Hm6kkGJrrxYfOvKv5hQP0GfF44ubAo9nbl+S3gX7ne/I8jmlydbsA8EAxS3W5I3tbFQswTD5gypgz7p44VWIHzcqcZuGMdZHOECmXrSUo5XuGSPiWCYi+4+HyaE4faSTQqOXtWZhA3E8m2UwX+ZH5ijqSK9t7s3EIuiQwCw== X-MS-Exchange-AntiSpam-MessageData: fB8x5Miz6wv6iUVMfBatsydIQYAWAnCH/R0mGm4tmjSY0SkYLhTij0PZMLzTLfJwSde9zC1IeYJGZG+lVzp/s9Ruh3/4v4QKCyNwp58PmI2Hjpc/HNGAbleutigb1wvdyR5VCUY6RkGFQqE9+pTU6g== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89dba4df-c276-4e4c-97e2-08d7e6e480b8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2020 17:42:18.4406 (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: K+mfb5gU60BzeVzvSkwEqH+dEiCTW0U4txiky2dzDmDZXhAeXYKRHYiLqqlBq7HapLZwtWkShIQ17VyEZ6EZ7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3449 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