From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (NAM02-BL2-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web10.10746.1591363673877273318 for ; Fri, 05 Jun 2020 06:27:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=DgCUvBsC; 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=RXnKoCkHONo8RTFkZsrmSjJJFZv3MXYAeqjAi0Ni5oobE9L7L6c73Flg9f+mZeBHN9zCGscGl/0IR9vP7bwmvl99ijlzy8+cohmRTJTnSddSzD0cw1JDVdePHdteavo/rFIC6FZjDXLBYnhNdbtO92J3LdieJPJEExhF3Z3RxNgId/Bc/HljbuKalXli7V9UHTTg8F3a63dwBKr1GudSzUioVi0OqbUhVMzw2YdrFLVa+4aoO/In2gVO/P5T/Xi9HDjjRzCL5xhkZl9HNsK37raiF96KgUpe91B8PweRkdFR4IfEv8uNu2nLW7oSs1WKNCXhO91gOXx95urxs74KOg== 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=kfbpgBu6FThPDyY/Xmkgpog4pwxFQ12ia4vztiCenjA=; b=C7t6/o1TXoxvzD1wBp3vtN4I+MQO6Vnq2Wm3Ufa59Hp+y3wI9O8EC9h2Y1IeiPi6/Ubqd82ItIGQhaA/NqmSwrZUkTJ4KY6SoHW2Z3CxcJCccaPGERD4wIrzsDI3WvQ4fke0YRexB4RI+MC18eQ6BFciBQ74Z3VIJK7YmP+09fAr8uZJQFEqW38dpLpVwWSArhnnHjDtfEs1Db7lwYbh0HwSfMGQvzOBSBkSrhOoPE2dF1GMzGgpc9Bo7l0uUwOmjd33+dZ6a0DkSw8Jnahvu5cXIhTJkCD/5DBcvJXQdIKHmFe6sL+KII1n/PBio3W6MJQQzR15iv6+eqHFknNhOQ== 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=kfbpgBu6FThPDyY/Xmkgpog4pwxFQ12ia4vztiCenjA=; b=DgCUvBsCYKGwVLbAA4mSKc+PwJmWl/Yvr7E5LjkfBWDJRgb7AhhByDB5sE2KGCtlsRfNsNZwI4PIklF25ssGxb0y4vLEcYR9wAiw/eEPi01LtB9CinE1NL3VJeAOEvRi9ZJp4IR6NGCdjY4ehhNOnwmMkcTRTvQqTJAKkVf3OKM= 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 DM5PR12MB1594.namprd12.prod.outlook.com (2603:10b6:4:e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Fri, 5 Jun 2020 13:27:51 +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.3066.019; Fri, 5 Jun 2020 13:27:51 +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 v9 02/46] UefiCpuPkg: Create PCD to be used in support of SEV-ES Date: Fri, 5 Jun 2020 08:26:53 -0500 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: X-ClientProxiedBy: DM5PR19CA0060.namprd19.prod.outlook.com (2603:10b6:3:116::22) 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 DM5PR19CA0060.namprd19.prod.outlook.com (2603:10b6:3:116::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Fri, 5 Jun 2020 13:27:50 +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: 27fe5faa-27a7-4e05-a849-08d809543f1a X-MS-TrafficTypeDiagnostic: DM5PR12MB1594: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 0425A67DEF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: euF1l7EjoDYyJQxMAMe7MNCVYYvKiLOhlT5QEDEjmGsb4SI1azLUKDIjQTvbCnVrR2s/Tlw8WEiYXCcRABDr/upM1HrfC6mSTWm1u+r46rTmetI+geJ0zvuw4t4MMHzPMrODM1Ada0CIpJEMse3ColL8Ry3ZSRzur/oTEXojvF1a8wDKDqhzigy+ICdj+wMUt3SPwkgts96UbH0o4bk/wtmr+2rN74jgVkn3XCDZCwgWA66FxsNk0mQdlJzhgzWsLqyDx/RqZ0MyfvAyFYsjL0S3bzmxs8hDdHIwI+o17Crg4viEUdH8BiixCtmwbPmk/+dAOr8dV3b2opU7sfF4tbZ4aHcbj4JTnrvmG8twj96bGN+2G5jIrRFgXiQuPsoAoWqrZmjEXkBXODVgxzL+iNBXVApgniakrLJCYzrXAPw0JYU/7549YKB1bjpV5EqkLdoajqUawkRyqmTG6u4vhQ== 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)(39860400002)(366004)(346002)(376002)(396003)(136003)(83380400001)(6486002)(4326008)(16526019)(26005)(2906002)(2616005)(956004)(186003)(8936002)(7696005)(52116002)(8676002)(6916009)(36756003)(66476007)(66946007)(5660300002)(66556008)(966005)(316002)(478600001)(86362001)(54906003)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: KVRHaKq7B8EMrHrYQelKoVhCMRRdFe7gn4kY9aMEgkhzH9i0I1hPH/0zqTg/l44pWf/UKGLVBS7NmdLxY2A26edQovqv/YM/yODvQBrZF8nTKu3+CoVhdvRPJnzMK8PsUIzNe4M5B1PoooR8LaOS1uzhXajX9ptiYGVXsUqJmoMY8VtQDZzC0gq/PHKCKo6gmseOLXtDPyDyOqKSy7Hwn8fIc2kcldC6fjlbaAsYK0F8IilxZc6l5p0NnNT9DURfchfgWWhooYObhzGD+6uJw5kUzScRYtsEQdJgCt4kjIapJrx4rCNxmCaF94h+UgdLbtVuy3/hqmiYo6rWJqWgUnLyQ2UXY6L1Bvd2k0Zi+0eLF4oeS4qwg2jBZRPAZyq1NoLY0pT/sR2SlFc/obArbqoMWRVUkRGcotp8Fmt8NHDmYJakG3QHqYNyGIkmcNxLhciC43gXSnHINMjKx6DjCdlpFG5w9B9OR+P0IXc4R3A= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27fe5faa-27a7-4e05-a849-08d809543f1a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2020 13:27:51.5778 (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: Q23Du0BuLf1t5GiZHaRGlEXkbTVXMri11nrmeVwI5LAoYG+knEbRG0O2IFoLg37V4ryNYXemQ4F4Vx36sTys8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1594 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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 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=0D gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x0|UINT8|0x600000= 15=0D =0D + ## This dynamic PCD indicates whether SEV-ES is enabled=0D + # TRUE - SEV-ES is enabled=0D + # FALSE - SEV-ES is not enabled=0D + # @Prompt SEV-ES Status=0D + gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016=0D +=0D [UserExtensions.TianoCore."ExtraFiles"]=0D UefiCpuPkgExtra.uni=0D 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 @@ =0D #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApStatusCheckIntervalInMicroSe= conds_PROMPT #language en-US "Periodic interval value in microseconds for = AP status check in DXE.\n"=0D #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"=0D +=0D +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_PROMPT #language = en-US "Specifies whether SEV-ES is enabled"=0D +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_HELP #language = en-US "Set to TRUE when running as an SEV-ES guest, FALSE otherwise."=0D --=20 2.27.0