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 []) by mx.groups.io with SMTP id smtpd.web12.973.1589925151073622217 for ; Tue, 19 May 2020 14:52:33 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=zSgmkNNV; 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=IjAUsJb4c2TlBFvCUqujYIs9o/2Ljvu2E0BLL/d947BjTMPectDV1yULZfFzvf3+aTFb8yo4umskhW2xYdCy37jJdc+p3J89ox8S4ury818/ugGVZ5jEsvbWlwUQC2VKbkcAE+ImHkL3ykNQCcTzvisVAz0J7xCfCKC9vzudwq4tvPGIGgkMyJ0gS5IxG3pkMIme3YEbcmbgHyiBHosZssEgmcyXPdi1sRJAcv+TGPrAgBv2intbUMo4kl+oEtxdiP5r7wLpyOmGpAVGzWVqZrWnpe6RlG5aqZ8LEAtl6248WDlthVZ3ZBCEpXlBX3zrwiTmiy3JQjwGGK7jw78qUw== 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=pmi0pHZi9uUgnzA9mevxfBeN8ESF+qwImSEwuPFGXBc=; b=asThokwN5AKF38G5htu8s98vWrqhPkyUqhkQEyntIBuvAa8BSswurmsugQ2He+n04U8Nr0ZLOe/d4ASUtEtj6ZdHygzrvAF4eVYWWJTOayaVknIGNWgcI6IspdtM7X7vbhWH9j5fhO3+TSviyYdapRK+LKGiqifj9YoskxGv6HLEI5f9qOiQBg9NsvrMlflxlWmMA5YjnFucFJcIFubuX7LiPU4gSRiHOxIecf1aZPIK+tl28n9FLlkBL1iGeL7VuskMcet4BnMaGts1TrD3QHBQzKzCQDxTtpH4SlZvMx46SiI+6Jz8j7X8C7X4gK/CUAQ7L8maB0tOShAuQMbG8Q== 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=pmi0pHZi9uUgnzA9mevxfBeN8ESF+qwImSEwuPFGXBc=; b=zSgmkNNVYf9dVZn8rLW+QlK1NXRynKMKC91Nq3+NpSmHaeu10u6Jze2uWpStqPUiq79NQbrNFABvdE621U07kpFXxBYxUJXLuSy1wmipeIsZSpwezBrquL+xb9C2cqUxng1XKcI7EQtYbf7v7sivCu1ycerYDhJvRdEDwAJkwQ8= 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:52:30 +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:52: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 33/46] UefiCpuPkg: Create an SEV-ES workarea PCD Date: Tue, 19 May 2020 16:51:01 -0500 Message-Id: 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:52:01 +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: 4cc221fb-0236-4828-843d-08d7fc3edce9 X-MS-TrafficTypeDiagnostic: DM5PR12MB2504: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-Forefront-PRVS: 040866B734 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NNAWXxryDMHDdLAsjxsgF5mwpPXfkXB2pCG3kuIi1NYiD7MZESwOEvDVgMIpV8gGtTuMM8uskotl7UOk9yOK+ZKzPvmpr+ZTBEgheI5hN1yLEItCbaKqQEyZsT4jPUipUX1C0ZYvMRq1qRk3Sfo9dDRhciRjo3D+5m+9FKCHfNbwCps1LVQQ1a1fadPRSgzu88H0SgswBFZE4reUM9a5L6N2pTXpQCQVDQ1pkGjlSObnxy1oVyZPavWzKgANhrg2/eiXo466HIh2EFXIIqrSP4AuVvcNMTHRkMTdXjb5AE31cpDWhZmXGzKOvv+HKJYUnLsQ9F6aCJCb7vs0xM9cv5naBlWKi3JQ3P2K43z73ULN/Zku55b4UXLhZPLnPZ3dqtNHLkaMqQAPEsGpQirLt8Udu9jc/UgwbbTJzCqj/XSYQAeM7s1Sj6tAf+8XEdeaP+wYrguMIK2e/GPGka9306ec1glmT5UPPCjxuuGCiBQG4QRT2AxaYY4yEuG55QxS0eHbp/cSHZgNznE5q7BKA8RijV08LfPVoTP3qcMy0g8+hH/rBt+pZhWhq5DuXxb+IslIJc6voExB84r0pr+bBw== 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: fTaAR/SPjyQP1VDHvYOuHwc2I8cUWWYU9iH4j0nb5QJUUfoe/wiFjeGl17CteeP2G5DNpZPGO2OcPxLQbPfQiBCiDA/p1RFLPmyXLNLd78RILLcEraxEB4s2L9uFwZwA/9hveUDt4ScGbI1GKa+w/XEfz5ep31G3rvoGr+9BSE9QiQhugTdCJNthxA5hwD/lTNda/B6ehbF4TbsLScvGyrB7ps61Np6nUn0cuiQRpzOrVccV9ZMqfVnwYotgxDNVVuM/CNdWKlp3swTWx6JaDhECn34N1u7RW6zuiJ3y4UZw81aCSKW/kh5BmfCu8E8K8PAnt1ZHY5zi1tFOMCeUziwErRXbJ7oScvinP9PumzN7Avf5rFBWPr0++iT+/NQrKfp0Ve2ZbGvI9G3cmrpec0iO4joB+a2dKtw5Efp4xb26ACBwnErcR+aAdy2jBL87Wy1JBd8dy1HxIq9GeBTQTXkz1GOJAfF2lnLcbp4fMEs= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cc221fb-0236-4828-843d-08d7fc3edce9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2020 21:52:02.2406 (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: ry/rFqUCh7iDXJRRWBFqGQw6kcz34yA4E0s0ILAxD/yrWr+mTvQ8pNNbXPZmgAzjrXb0Y8vamfSDu62jJTW+Yw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2504 Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 Create an SEV-ES workarea PCD. This PCD will be used for BSP communication during SEC and for AP startup during PEI and DXE phases, the latter is the reason for creating it in the UefiCpuPkg. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Signed-off-by: Tom Lendacky --- UefiCpuPkg/UefiCpuPkg.dec | 8 ++++++++ UefiCpuPkg/UefiCpuPkg.uni | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index cb92f34b6f55..8c614f9b42bd 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -161,6 +161,14 @@ [PcdsFixedAtBuild] # @Prompt Specify the count of pre allocated SMM MP tokens per chunk. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmMpTokenCountPerChunk|64|UINT32|0x30002002 + ## Area of memory where the SEV-ES work area block lives. + # @Prompt Configure the SEV-ES work area base + gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase|0x0|UINT32|0x30002005 + + ## Size of teh area of memory where the SEV-ES work area block lives. + # @Prompt Configure the SEV-ES work area base + gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaSize|0x0|UINT32|0x30002006 + [PcdsFixedAtBuild, PcdsPatchableInModule] ## This value is the CPU Local APIC base address, which aligns the address on a 4-KByte boundary. # @Prompt Configure base address of CPU Local APIC diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg/UefiCpuPkg.uni index f4a0c72f6293..219c1963bf08 100644 --- a/UefiCpuPkg/UefiCpuPkg.uni +++ b/UefiCpuPkg/UefiCpuPkg.uni @@ -281,3 +281,11 @@ #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." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaBase_PROMPT #language en-US "Specify the address of the SEV-ES work area" + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaBase_HELP #language en-US "Specifies the address of the work area used by an SEV-ES guest." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaSize_PROMPT #language en-US "Specify the size of the SEV-ES work area" + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaSize_HELP #language en-US "Specifies the size of the work area used by an SEV-ES guest." -- 2.17.1