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 [40.107.68.50]) by mx.groups.io with SMTP id smtpd.web10.4129.1596829202070011122 for ; Fri, 07 Aug 2020 12:40:02 -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=qPYxcyjb; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.68.50, mailfrom: thomas.lendacky@amd.com) 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 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=OINC9z6p6GoZ2IcFziq+cbHUiE4DLmJwvKvylX9bN5I=; b=qPYxcyjb/oqA5RlAjA9D18v2H492T6it5iMVwVluFwgCinIZ+HQCxi2AqsYa7oU/PPDJy5e6HPrTeYBy25VtOxeoLilN3VU0u0KUYomukBEhPgMfa7n9yA1DXnd260Jvs6F1wdIi6xDnLCWGTb+3FhoS4qpWBy73SlVts3HnAjg= 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 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 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: [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: X-Mailer: git-send-email 2.27.0 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) 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 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-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: 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: BCL:0; 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-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR12MB1352.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(39860400002)(376002)(136003)(396003)(366004)(4326008)(2906002)(16526019)(54906003)(478600001)(86362001)(8936002)(316002)(83380400001)(6916009)(26005)(186003)(956004)(966005)(8676002)(2616005)(6486002)(52116002)(7696005)(6666004)(66556008)(5660300002)(66946007)(36756003)(66476007)(136400200001);DIR:OUT;SFP:1101; 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 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 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