From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.87]) by mx.groups.io with SMTP id smtpd.web11.21962.1671637919490351831 for ; Wed, 21 Dec 2022 07:51:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=Er9YZuB+; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.93.87, mailfrom: michael.roth@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FjUj49L59GyLWwzTa8Qat4R75EH6O29TdjKKXoYFqsNjjaAcRMoBA3sF9nL/aNVDg9QB9IwInom46xtYqBOCY+ZDZD/mUtySO28R10OWGsbNskTQei/uibhx278wA3jOygn1M1WyAM9gCUePMSCI6c1+AN+FB/4mrAKpycN0p8vkiK9UF6QsTDQKWaNllhDUgPQNaouLZ3a5HuiU+yYPsFos3n9HVVeey4+mEjxPxSrS3CjPKcAwZaMoDCF7e+80RizUUPBtAG2bpe1MYrr3JlW8JOwNyxuajROt/UVWoTbQXgaYmVFEisQ/JYUxasnDex27yMyF1PWpzNsg3J/GeQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vNHNUwahPjqXhlwx/fzkKrluIYYozCNmAfVHWI1Lkws=; b=T08M7EyKQMTJAfdZOWp3Q5v4hPS/3U+D+pCEQy5ZikbVsTTK4cgAcKcpiygWHLla9YcY/IYbhg0LExW2DveUMhyIQaGzP8FGMeN/BQsoNutCuAOxYT+nfBim1V/GRlJbV3UxHctSL9H/0lrYFy6mVWkvWzWC5voUXGMoc/elmNokkwWiwj//BwRIQSGFD+RL4GPe66NiWxerqmKA/QuD6OY/5hFn0Sr3CEK70Ei5JBvrG0cKP4O7W7FkE3UKH24l8r1JoADfaG70osr2YnFaF7h5rnxGVAj5ToCSbllX+sG2JnUvbouc4FSCodgYKhcfS39YgOttMFtbAEdF89krUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vNHNUwahPjqXhlwx/fzkKrluIYYozCNmAfVHWI1Lkws=; b=Er9YZuB+owxOEQSpx+ZxFVW45wc21PvZ8CGdJwp2IELL+RhJRLt0BUOIa51OvnmVmQJyw7FubnZdVNI0drYL5yp0LweyZqvfP2rx6Jo8VIVOX+8SYq9Wtve6jo3wgDo/zkrHuwqQPsAOwAKs7FyxQI7lEE7d1z+hQ7CXpbtWFXQ= Received: from DM6PR11CA0028.namprd11.prod.outlook.com (2603:10b6:5:190::41) by IA1PR12MB6651.namprd12.prod.outlook.com (2603:10b6:208:3a0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Wed, 21 Dec 2022 15:51:57 +0000 Received: from DM6NAM11FT095.eop-nam11.prod.protection.outlook.com (2603:10b6:5:190:cafe::a8) by DM6PR11CA0028.outlook.office365.com (2603:10b6:5:190::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.21 via Frontend Transport; Wed, 21 Dec 2022 15:51:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT095.mail.protection.outlook.com (10.13.172.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5944.10 via Frontend Transport; Wed, 21 Dec 2022 15:51:57 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 21 Dec 2022 09:51:56 -0600 From: "Roth, Michael" To: CC: Tom Lendacky , Subject: [PATCH v4 2/4] MdePkg: Add PcdSevSnpSecretsAddress to export SEV-SNP secrets page Date: Wed, 21 Dec 2022 09:50:45 -0600 Message-ID: <20221221155047.180912-3-michael.roth@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221221155047.180912-1-michael.roth@amd.com> References: <20221221155047.180912-1-michael.roth@amd.com> MIME-Version: 1.0 Return-Path: Michael.Roth@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT095:EE_|IA1PR12MB6651:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d5dce26-c4cc-4c64-87ae-08dae36b4a35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UgQW/+sDtNYnx5eMF8jrlGjLxTo7uocNrxAbRKqNSTicEasSNvXaZ24Bu6mCTtJcWuPyvkeXc8XwiBBIPIenlWxJtWorJWj7UKa0x47oxKToAkswQTw8wy80HJFCzlVUq8HhBxnS3qnJ0PwCDtfz5WraOPJNDYjadbmF90/loBweQ8f1Wc5b6ml/ns8xfvTJRIm2wRPQoKadGLGr9jRu2KolxEnoU0LR3J0grrFmX15iBmErYQqfl5vz1Po/5pwPdrTu6yJNIBVmpdTObmehZ0+VM+1nGgjc5Nre4htPBBT7y2t3LGq8Y1dCyYIaI17vRRxq+u3Cf9pLY9MAccgqOAunpaweJmaHPszZm3x+xpY5J8gtrfqkfnLFT5TGT9Oa3pXClCjFsu4192B1tZbE5eDqM3cyK//gT2RdqlVcWZfslvnC6UXk1DF5xrH1QwsO3l656ShT+34C5LiACsXdWKDr9kt/GmHVvJsbxb2W5amMOyvF6r7q0ozndu4SJp3LLznjLgAkfFKRWFXrjtyJ1LeW1mQbYPzApvI5rmqRs5FKfZ2I9hf6AGTIat5mm+2VjvkEX+UP8YjtAKAGrnE3VvC9BpwaJVwituls7E8ICd0LYqA0h5h0MQo/bN+Z/VLRrhfquCveUXNmO7BbJhlS7TCr3fCk4iRdtFF3Cv1Xb1P9PYH0JJI6Dc2jdYx5Iz+pNnqtmxbzJuoglv5/84H6yRQRbQ1VI0PMhscVXWa9I6YZO3BlYtO+ruNBfsRm/Jutld/tdAv3KmWhpO8kcx8RVg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(136003)(376002)(346002)(396003)(451199015)(40470700004)(36840700001)(46966006)(6666004)(86362001)(478600001)(186003)(70206006)(2616005)(26005)(70586007)(40480700001)(16526019)(6916009)(316002)(54906003)(4326008)(82740400003)(81166007)(1076003)(82310400005)(8676002)(41300700001)(83380400001)(4744005)(2906002)(8936002)(336012)(36756003)(356005)(426003)(44832011)(36860700001)(5660300002)(47076005)(40460700003)(213903007)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2022 15:51:57.1593 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d5dce26-c4cc-4c64-87ae-08dae36b4a35 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT095.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6651 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain OvmfPkg will initially use this to hand off the secrets page address to UefiCpuPkg, which will need this PCD to access the SEV-SNP secrets page address. Define this as an MdePkg PCD so it can be accessed by other packages alongside the secrets page struct defined in MdePkg/Include. Reviewed-by: Tom Lendacky Signed-off-by: Michael Roth --- MdePkg/MdePkg.dec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index e49b2d5b5f..a233a318ba 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -2429,5 +2429,9 @@ # @Prompt Memory encryption attribute=0D gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0|UINT64|0x00= 00002e=0D =0D + ## This dynamic PCD indicates the location of the SEV-SNP secrets page.= =0D + # @Prompt SEV-SNP secrets page address=0D + gEfiMdePkgTokenSpaceGuid.PcdSevSnpSecretsAddress|0|UINT64|0x0000002f=0D +=0D [UserExtensions.TianoCore."ExtraFiles"]=0D MdePkgExtra.uni=0D --=20 2.25.1