From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web10.1374.1585071732213010365 for ; Tue, 24 Mar 2020 10:42:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=GHp2wft3; 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=K1MKCNeDqspNh9mMk7w/Cj6v5rFuA/d4kFnjE4dIWyZYbdGNBUfd4UWOAlJj+eUbhYQCFucrbTKhK4m5OBLtoaTolIwHKTufmANTrX64TFYEcCO6+mP0/GdXIcvjmubwEX6TsyRFykDaeweHEeWLMCR7ExKQexGeMk+pudJ0ec9xFOmAC4wc/WKr7qQfh7MbxOFQf9C9uBMtGBEg6LmMLASsoXi6W3H4sStu6fnX4H0fOV1Biq0PC1WXvIE6RFU3ArQ3eXgDbkabx6oKErZ39ZlRdPANGG6eAmd69kyGi+ut3PkXMv2ST2nVRYHT6SFRGdYZb1R8OB90weTDH+2e4A== 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=wsuytSCmlHosLE7y4+iWliCO6DHv396BowxxJkccyM8=; b=JuC5Km1wyowpx2upJTLFqysEzGJwjnE8fXvw2m5OB+DvpSwEtdLKS+qXKR3IMweYxh/6SOBqpZ5cGC8pMNGXpi4StAu0Xz0liVRlVsWP2R6b8YwAk4O/RtgJpgYXDFH2fgmTYWf9kR+rwbtw0kZJJcpWWLHCW/6U7Y05EaYkxQwK/8vRdLyhsjKtlaaqMM5/9VoDJQwDcoMczYxA+Y41WnqfkqbWTdWX1Fm1chO9E0mkewXoxCS/nj2lLrBQLYueSSEc2bpwCWBwyYqnmFmcymy/HxyebNtHKQPm2ColP/7R7Dt6AkqSX4cjREoAbn60FBikQlblZVMKZriHD+almQ== 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=wsuytSCmlHosLE7y4+iWliCO6DHv396BowxxJkccyM8=; b=GHp2wft3bWGY8HTsPTl0NEnhL0+yHkxiURHgRclZT87/75QZKqfeUx+5+gHVXIMOixrfd/jBwvDOdQyEP97e6OiLmcFzhsij4Pk152FS2i3Ip2IPtiZFKjRskBW06CmCRXIuvQlFfrZINgHodIMHmH/C+NM+6/CxmeAVsfrWFFk= 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 DM6PR12MB4027.namprd12.prod.outlook.com (2603:10b6:5:148::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Tue, 24 Mar 2020 17:42:09 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::f0f9:a88f:f840:2733]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::f0f9:a88f:f840:2733%7]) with mapi id 15.20.2835.023; Tue, 24 Mar 2020 17:42:09 +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 v6 31/42] UefiCpuPkg: Create an SEV-ES workarea PCD Date: Tue, 24 Mar 2020 12:40:45 -0500 Message-Id: <0765400856883e0400026df48f16a3e52dc39b9a.1585071656.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: DM5PR06CA0025.namprd06.prod.outlook.com (2603:10b6:3:5d::11) 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 DM5PR06CA0025.namprd06.prod.outlook.com (2603:10b6:3:5d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19 via Frontend Transport; Tue, 24 Mar 2020 17:41:39 +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: e4ae8fd3-f407-4323-fca7-08d7d01a9bb6 X-MS-TrafficTypeDiagnostic: DM6PR12MB4027:|DM6PR12MB4027: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-Forefront-PRVS: 03524FBD26 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(2906002)(956004)(6666004)(2616005)(5660300002)(8676002)(6916009)(8936002)(966005)(81156014)(478600001)(81166006)(316002)(36756003)(86362001)(54906003)(52116002)(186003)(6486002)(16526019)(66556008)(66946007)(4326008)(26005)(66476007)(7696005)(136400200001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB4027;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords; 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: 6UDvmcs0PSAnrx2mJUHFxD25G6coa5yxXnNYlQDmc8GJ617N35LyWvQOhasVGLbdzXURb4GuTrIdtVQgwe99oPREtiZvoIF+iXSzpwHcaIdDDtSWGDRx3/vs3o3lcqGog9S5Gmy+KD9peoX7X4qSKDEzdAY2yr9egiOwW8Ijbnf8acxrzATf6Nph56+/KSw/Cn0pf3TBQo9JMBTW+DNE7Hx434zfrRCQci96zJ0MNxtABz9PjYEX3SQvIxSBcVX2NVa8sHzpMOw/nM9XwdeDKlPCo6izvtqpO8R6W5hN6EsfBOSafvAdo+kfoM0qS385wy6pCCdhO/J6fMgwTF9QXnrgHTwtf+ggyRfAGK2lDyXmoBO3b2KmKZKQkfFj62iDMQNLFOeqxlMt8J6ngDEWqfGLwy8AAMvpPUqpoHuyXSaCMpfuCRAGLvfxnPTDZMJQlfQhSxGMyRvxpad0/9OyK2Ay1IVtHAoDyEbSYJIRCWWDEItxZ1Q4/tkwWzIQLVPk6xKzSUDe7hkmDyKPQmdnpzLBr44+qDORmwXKG7DrvnMQ9LL8vyUvPpklvAeXCm1eluPrE4Cm87LkZWR/SGtJ/g== X-MS-Exchange-AntiSpam-MessageData: /E/qHhnGc9Nc8BTmHp/XtWcbFLOYgIprFfpSRLf15hhBDrkVDK0/x5WVdvdhaUCT1Yut5r1OzOiBeUd3S78leHUy4XG6zvIxj0NaCYGdJr6g76IQ+3uXKZdKtNMSbAHNa+Z7pqyr+C9fUiCznFcSyw== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4ae8fd3-f407-4323-fca7-08d7d01a9bb6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2020 17:41:39.8401 (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: mEARXNpZt5jc8qBW2X3Pl5+N8+/8vWih2O3aZfuHLo7fbilu6KoafkUJhRlf39pu1tb8jRoCRe5ftx+/Cpzg9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4027 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 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 795d1c8dedba..c3c2c7bc78de 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 -- 2.17.1