From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.63]) by mx.groups.io with SMTP id smtpd.web11.1667.1580857354621927671 for ; Tue, 04 Feb 2020 15:02:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=UtSnVX2Q; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.92.63, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NhqmaNEob3T3YSSY+TzVZRyEdOK+JXPdCupL0Gl1LPBlVQjIDyCXmOAjf+ir9knuH0XpclwlCD2jd2qV5fqg21ktKmg6cYISmpWCldDConGsyKK8gU6F4sdBk/VmBCnqECxPAlx7UnuaqnsVaUSDgRsk/B1FvPn9/CjGVnVKHCn+iO6J6vBbsGUENsXNkhRqvn1R2PocMyzBl4tTbFwxxSr489keLvP2ulY+c6tjhyEUtChs4rNp7FCWiFXufyXCy+vhQ24fvGAi0E0NeHEA1HkCsWfkIxH89ne26US72h+8KonjZccG+oaOOAE+1qqWPeeml2As7JkWwOnTfwRlwQ== 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=T/fY1JiZAODuGuDMcprlaG36m4YqSHS3GlxRjNOYOV8=; b=W4a0PAIiL0p67f0for53YjJnjpjWWnEc7Zqbp1+WEEjNd2+ujr9Q+9bFSLIeMPEQWQDlJhSVX+EDUIg+dEACuDBlvDVe6EQp2/vuyo2Qv5BlxA5VdevVuqA6NYydU61SaxhjZUCoyPHqzEo5/afk3UTnt0LwNAW/kYgnT8r7S/+PAw1lhbxm2VEze66dnRFHw2UZxemzoEQhqYT1xfRG36diPRL2NXIYGv3/W2PsT0mRL1FzG81p+kd2GVW44ZKB/71+OU2Q6nCRZHuoLKId5KouQ2SFbAaQp1B6sys5KL9ssj6Ncwry3LL5GYXh5HbePfgcZyIcs9LeYTJko1a/hQ== 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=T/fY1JiZAODuGuDMcprlaG36m4YqSHS3GlxRjNOYOV8=; b=UtSnVX2Q7QgEJFR/696oIZWigVpqP4HxlgNxsoH0IYpLBYKU4hRiqIEGWwa0qnPbPn52385/4BiWMwiHwIrNH1UA9Uo6u/8PzJhfgyA8aeYbt4vs491f9XtQmnTlm5WBuTVSftqbxIZ8ZFuo0s5PRoRA6KBHKZiSI/7OVBWXpgo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.71.154) by DM6PR12MB3930.namprd12.prod.outlook.com (10.255.174.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.29; Tue, 4 Feb 2020 23:02:33 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::a0cd:463:f444:c270]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::a0cd:463:f444:c270%7]) with mapi id 15.20.2707.020; Tue, 4 Feb 2020 23:02:33 +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 v4 29/40] UefiCpuPkg: Create an SEV-ES workarea PCD Date: Tue, 4 Feb 2020 17:01:33 -0600 Message-Id: <64b8ad547359780c9093300545e43d663f2c6496.1580857303.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: SN6PR16CA0062.namprd16.prod.outlook.com (2603:10b6:805:ca::39) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) Return-Path: thomas.lendacky@amd.com MIME-Version: 1.0 Received: from tlendack-t1.amd.com (165.204.77.1) by SN6PR16CA0062.namprd16.prod.outlook.com (2603:10b6:805:ca::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.32 via Frontend Transport; Tue, 4 Feb 2020 23:02:32 +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: 407dd6b8-dde4-41c9-1a01-08d7a9c65162 X-MS-TrafficTypeDiagnostic: DM6PR12MB3930:|DM6PR12MB3930: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-Forefront-PRVS: 03030B9493 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(366004)(376002)(136003)(396003)(346002)(199004)(189003)(4326008)(478600001)(6916009)(81156014)(2616005)(956004)(81166006)(8676002)(966005)(316002)(54906003)(2906002)(6486002)(66476007)(66556008)(52116002)(7696005)(186003)(26005)(16526019)(5660300002)(86362001)(36756003)(66946007)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3930;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; 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: cN56+Tk8Da04Xxg/Q9QfN5C+cew/0ix1YvgRiUwBAacFfTtL+sa1VM4UtB3JyxGuExJeDQWkhnBM27q2pKZ1S1qh2fNw29nF5JpFi939NDk34Xjdy5fN1iN/0QAHAHWwI61J0XdagEB/FwwFHJP056Ic3rdLa3dIPCQkWEROnMvCTrN3B4is5yPjZ0t0t1yWp86/Gu5ng9rbLzLrmJw7Ylv+bzLuOu3xHhnat25lvUhPvTqZfCBtaHV8ZOI02SLan/OwTB6IjYxxwlFXPNlM7ldmqypdGQkDAStHgn8bpzkeSXJs6+yq/UAIQ5IHAtOOzFE9HM7Q4Gb4TnutnnHFCN6+hhllPTS/n/y9eFPddV/uF16phNNlbwWbC5zYH9HkzBIPg6fHK1Y4XBaltF9vehBXb77euU8r3JTV+/6RZ89npT8KQK7vkSvzPOgycG4OGiWU1GGYKzkVDWkKNduuQ8/Lj8DuQVg1Tu5S8kbN2LTP1DVym5oyZHwK6oYdm7wlrcACYyt62PtWH0mDlAHpng== X-MS-Exchange-AntiSpam-MessageData: r87rTA/zf2JEiFi5Yun8ioSJ++1JLnWzZhuTjQOVCIrNKBVxAcayHtp/qko0aV2ye6lGeDTP9j6VwegAg741HL97SS0Qq92yFvPbwpEwevAX1z9ArABtuMqvBFxdsleTdV3DE7x2mDIeDTtJUs3R8g== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 407dd6b8-dde4-41c9-1a01-08d7a9c65162 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Feb 2020 23:02:33.2725 (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: EDO6H35Uugdr6pSxIRDpUmy3bSI5WmZeCUyiS0rYHptCaiYhawHOQ5XskrnDkvcHH7kecSMKtkz8Kp1H/FCkvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3930 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 893d2d06b0f2..16218ab4b2f4 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -172,6 +172,14 @@ [PcdsFixedAtBuild] # @Prompt SEC GHCB Size gUefiCpuPkgTokenSpaceGuid.PcdSecGhcbSize|0|UINT32|0x30002004 + ## 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