From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.46]) by mx.groups.io with SMTP id smtpd.web11.9798.1597325043193549535 for ; Thu, 13 Aug 2020 06:24:03 -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=ZFS+20Oj; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.220.46, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VVsvaml4ZNf3rnXrMfw4CVuI4g35s+5hMo6NG3vGkfvFeeuOmw0D7Y9er+506Nf9x1kQRcMDDg3E3EWaaEOFAqu9QqsZevvUzgnLDsnDWaJksYcyOxWH0qW3v3Nha1OFsba2E78FR3YjMddYsqN1u+JkSjelkKTtwKfRzg1CRi7iL2pRyCVCI8HGteg6umwRq3QMLUdpOxJNSdbBqOAeR0otiugzDiUdJykhycxbnY6Uw+sAcpXgn8ysavfZzzKAxyIItA0dJjeG3clIuI43H00fdyCUfNa3z5ZyOf9Npfu7q6niwWfRLRfJomcRpdk6TdEDJ/V2UWizkQdH6Y5M7g== 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=hwn8P7Xvk4o1voWXAhg8+1E6txBhNEahDUPDU0Ax+CI=; b=aI/NRwVWSvFSC4DTmSZmRbgWS9J+5IDxkVK0iylemxPphodXHKclHutSj4+szoHIQKcX1mBoV3i45Ug2FYALfLBf249VFdixszt9qsTVmL/Bv9LwyeDN7OSsOBQDU9rELVRiIYDxRmkUlSoqF7uigztjVvq8k4LhEpHj9MNfkgBwqBiFwx74MjRHc1h+1H0aAKBvDUb0lNTFQWeKvw6ixXOwt+2PCDHATn5voNc8D+OrIOgfX55H7DZotazyBYTt2qq8PZAKSo17qBSPw9del59CYwM1Vs3FOS16fAW89NmKz29PFM6C7nyrs53qqHtGjbWrPLCoePm27xxrQg70EQ== 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=hwn8P7Xvk4o1voWXAhg8+1E6txBhNEahDUPDU0Ax+CI=; b=ZFS+20OjpSz6NcSFlzcMrbVdrZRxwbbzhzEazAmwnVqhBvYl/mb8TpxVPkqiwDez19KMbiIkuf/c4Lop2PgnrjlZrW8TrUsUASdCDFPwhkhZofLlXN9Q8qh07a0pQPJWRa4bvXVjqwpLwx0pz/5EJrWjl2t508RUKSLPBofqM4E= 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 DM5PR1201MB0026.namprd12.prod.outlook.com (2603:10b6:4:52::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.20; Thu, 13 Aug 2020 13:24: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.3261.025; Thu, 13 Aug 2020 13:24: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 v15 02/46] UefiCpuPkg: Create PCD to be used in support of SEV-ES Date: Thu, 13 Aug 2020 08:22:49 -0500 Message-ID: <3860ec36d064118d2c663d18cbad1ac88e5504ad.1597325013.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: References: X-ClientProxiedBy: SA0PR11CA0046.namprd11.prod.outlook.com (2603:10b6:806:d0::21) 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 SA0PR11CA0046.namprd11.prod.outlook.com (2603:10b6:806:d0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16 via Frontend Transport; Thu, 13 Aug 2020 13:24:00 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5b8a0166-7e14-4a3d-57a2-08d83f8c249c X-MS-TrafficTypeDiagnostic: DM5PR1201MB0026: 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: 53vZT3J4sBG/QKWEHUoS8IXzaPfZd88wqaDAKKEBoFTEGGeMeOcj6Ru3q6US4xbwEg3P8YdxbGL1Mh8xj+tksMRxUOy9ENcQqoO1I/8n8/mk/CuA/GG4kB4ZL4TY+ZBwNy6I3VkkdKvoc75Hwe88mwqgG5oN+v4mdTafak2cJSNMQ3YgGW2WNBg0XyDdGWMYepZmxVdMh72gE2RwWe/5dtKRDfzBjXHPSmd+65rmLYXJRP2rXvtDNuyXwY3l/hDJwNf3fK5Ud4eDI7vjXnPY7ueoXj2711JdvDfyWVYOOrzoe5szuEkaaINhoqNNWW5oL5np0tyGaZChcRTKAeDt0cwQ5VlYnjJiuLdLIYSr3jlGq3XceqIQTx4tcPxDPOPACbYekXNBme5aMDv1fFS9eBo98YPlQXOKLHWDlRyE4tGPGbsy2j+ddCmTGaXbenvsUZHEn/1Y3KnjIQwOJ/BBGg== 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)(136003)(346002)(396003)(366004)(39860400002)(316002)(8936002)(5660300002)(83380400001)(54906003)(8676002)(6486002)(2906002)(6666004)(6916009)(956004)(2616005)(4326008)(66476007)(26005)(52116002)(7696005)(66556008)(16526019)(36756003)(966005)(478600001)(66946007)(86362001)(186003)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: yNpfDTGlU4jLYTBkolqCrtiSeuGNI/yd0Bx3eaiDQFGy0IE6g5b6Sf/OkY4iZc1JNnSDAVfGzL/bKuCeRosMzuut1RScMTkzLaAwLG48r480hRfAe8zTr66F2UKI+4zRtoql9+4rSn3RWVI+547fJm8Qr9y2ekBNTWrkKTu4X96AsEp05CZ2opnRH4ZC3ImavMW6TcgzQyW3jVB7sxD61nUnZIACBfaYbtTmimMg5tytJNmK6P1xd4Ubj0gr7Gbdcc3RussazYpuxqtvrOmj3ZR0XCwcjKoiC+nB49FM0n7KHHZEEfyyaOqg/Aof2k/ZIaNknOf9hCx/eMZtLlYHnZoA6XiP+WFPW0fKW9M8tTm0dgWcsjQ+UJTJZEC9t/4qJTig7CXqS7+FHuQ3dK5cQNph7beSyRVvY77LTsXN1M9yZUoyGpfvzGXxXCFj9r2SiU60bYKVpj35TLZb+D7qrshrwWo1Cr6FSozmGtALlqG9eCHDD1RF9KGXkp56H/iXr8fWuzRcgiJfukvp87JxX/S/N6ITYu6L8kJ6uJ2nwXItbNG0eQd31SI5fMij7p9ivfhPAXrBFVcVNRk3G6YSpkaC6sjIcos/Dr4fpJpisPW9UOyxgStrcOgEWyK4XuLaOEiJpdRfqZP8QWFsleC4bg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b8a0166-7e14-4a3d-57a2-08d83f8c249c X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB1355.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2020 13:24:01.7321 (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: 9+Osp1F4+nwiKkw25U2mR9Z/Prc0PgO0ZmX5v7pVh08IHF+xwe0kANVlstUxlZ20LR1Lf2gKql84HJvJQUlZZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0026 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.28.0