From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.74]) by mx.groups.io with SMTP id smtpd.web11.5554.1625057656504057081 for ; Wed, 30 Jun 2021 05:54:16 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=SLEvFwTN; 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.223.74, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NxCrngN1DWqhAZtzN6fsqnb5aX13jxAlpQuNVaqEoWsYNnWJ70/Al9mQHk1tDBXRrkP6xrSR+iM0kBMJhDGFr4lRgWC9lHEgO6qB29i9ul8zJBw21J9hRbTfPNf9bIjJ9R6uklH0I+LEGa3U6yn+eYdkuKPJwSQ9ffF4f2fTAxG9VAfBrWnmQkZx2t3b6NTrQDbFwEiJ6v3H2hSMUBkBjdLp0mfUA30hDfskOIzYsSeeWI9hNY/i3wXvPvU0IjfwYdqgmw8UwLU/KanioP3XOEV7bbSLxP1IezML2XI6VeMFaLYVfUkJVpunlcxxcJ+111xzmRvu+feNCVJ8oL923Q== 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=WttPWIeqydim111YSyO9AqbiZ0/Wl1pBHdiPbk966mA=; b=H/pD1NczpDrVDxQee2gCMY5W4/TMyfTZvF0rMlz5XwZ1u4KWJyqZAnq9EFZUzRiZXOIzphvworjpHLJt+xt60LD4miP11iKaa4+RdIvQmtggSg4LGmxf4nFQFPo5SZn4uzPD35nnJbshPYw8pQftuolzfgFzDbiWCNfv1CxS0QBHc6YS4bnlpdkBkrjU8ffFVcJ6fGguLImUu7ytiit6Ogm7P9vI2miY+8KtkiaZ07w8ObFpP3v35TGV/7coRsbE8eIwcrrST1uFWbTbDp1R+bxXU6EPdqrwRHVQ0T/4pdmebl9qwYB0sjDBjSaHI1yXYbgTqMmcMJrW9M4WyFeZBQ== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WttPWIeqydim111YSyO9AqbiZ0/Wl1pBHdiPbk966mA=; b=SLEvFwTN5FnFvmiMdT1WrF7xZTPJmt97zy5ZBuvYwc9JB8y7mVf/3oLZfUPanrNhrMtle8//E/m7p2VHqWjuipAN1/fPX2mMekGar6UfZpE7k3z6s7KFggd/IXJbUS8XbIuUsfj75GHKuBQ+fYpUSmlbdomgGIGJO3aIFWZKHw0= 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 DM6PR12MB2714.namprd12.prod.outlook.com (2603:10b6:5:42::18) by DM5PR1201MB0076.namprd12.prod.outlook.com (2603:10b6:4:55::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.20; Wed, 30 Jun 2021 12:54:14 +0000 Received: from DM6PR12MB2714.namprd12.prod.outlook.com ([fe80::7df8:b0cd:fe1b:ae7b]) by DM6PR12MB2714.namprd12.prod.outlook.com ([fe80::7df8:b0cd:fe1b:ae7b%5]) with mapi id 15.20.4264.026; Wed, 30 Jun 2021 12:54:14 +0000 From: "Brijesh Singh" To: devel@edk2.groups.io CC: James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Erdem Aktas , Eric Dong , Ray Ni , Rahul Kumar , Michael D Kinney , Liming Gao , Zhiguang Liu , Michael Roth , Brijesh Singh Subject: [RFC PATCH v5 10/28] UefiCpuPkg: Define the SEV-SNP specific dynamic PCDs Date: Wed, 30 Jun 2021 07:53:03 -0500 Message-ID: <20210630125321.30278-11-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210630125321.30278-1-brijesh.singh@amd.com> References: <20210630125321.30278-1-brijesh.singh@amd.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA9PR13CA0018.namprd13.prod.outlook.com (2603:10b6:806:21::23) To DM6PR12MB2714.namprd12.prod.outlook.com (2603:10b6:5:42::18) Return-Path: brijesh.singh@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sbrijesh-desktop.amd.com (165.204.77.1) by SA9PR13CA0018.namprd13.prod.outlook.com (2603:10b6:806:21::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.14 via Frontend Transport; Wed, 30 Jun 2021 12:54:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b281a630-78ca-4a9f-8ab5-08d93bc62a16 X-MS-TrafficTypeDiagnostic: DM5PR1201MB0076: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C6v4lyzHcSaJii12SQEL0YrFxp2pcI3EW50wzUwhNkr2QenAw9/7vHpHjHA5Rk6m6NHkIg0Bj2rCt5Myk0/2wlhI8xj03sw3/zCxzN3HuYaikwMSlvNKDl4v7GvRjstpYgTh6ioo41r7PYR6H0oMnNVM4dBvJF+4o7kNUhNZ60SsDfBTY8vKswNRbS/wRtVeU1mY41+bOHfIx3cySVOjxHowqJRMR5MtBK/O+NBcXucO1xwIO6zpGx72vc8eBvF3rDOdIux4ni11TAe+aoLv6PIFvqHSF0YWgabiabyDPZOo8heqfMWgovimecfqm212mFd2Bm1pZNZc8ntUlyljk+Q7ExWkch1WQMtu8luZlEfnqIlt5eEPBFOZ/H1DGHMyQljMO7eXXFLcitLX+gpK9ckZqJ3NOrxcwErg599oXZFHCgnTMGPUdGptFuALRNRxVM/UGgNcB7r27ZI/BbNmiowG84i0Dht+9TSH5A0NAVhesKon1rKO2sO5bgP49BwtuB9cZbL/d9pWML1raIQjVCF8UuwVFWUrulzb82pXZ481rYLKfveT6lOxyAKXOAotQ3fAigWabmgTpaMnwIxYnbAOOPSMAkZYGuJzkk2Rzt75FZoLYqllm37NjNNrfHdYBTGe2hcu+xQ267rPVmE1c1eZ4ERsItPGkpDW/whzwfh7/XVquQepVKmDqLMdPKF0flQk/Gy69Fm0Q8hcHjFlCEXvbGE+/HK+jmQdsAsjG5nWTohT/7qPiL47d2WUQHCGNTzLfRuDSj80206FAMNUsBRcZypijrrajSZxchEHr6/qcTWZYcbkTVSPneYNGjQ/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB2714.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(136003)(366004)(346002)(39860400002)(396003)(7696005)(1076003)(8676002)(16526019)(8936002)(6666004)(2616005)(4326008)(956004)(38350700002)(38100700002)(478600001)(186003)(6486002)(66556008)(66476007)(26005)(7416002)(316002)(966005)(86362001)(66946007)(52116002)(36756003)(54906003)(5660300002)(2906002)(6916009)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?DfVguPDz8amVblMSJTgze5jaucYhzKUFjvHzG/7QJqKvV0roYpAhQND27Yfg?= =?us-ascii?Q?xJw3x9pzkT8DrNywgrR3YHT9kCVpm3/aAt8PE5P0c66PJdAD032T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4MKrCDKGSY7BLv4Fe7RrQ0Z3Uj2euqXSBRraJXBqs7B7IqJt1?= =?us-ascii?Q?VNn6Ht5tjRoqp4Tb0Vt0ftQwdC76LmG0ePRQNdNQwzHmiwEKMvvJ63Y8bD6r?= =?us-ascii?Q?mfiFLdwlIDtBlQT9nnQHU0hCd9fIMjRulr9Z1FqfRYm3lhPDz4w2G0CkgbxJ?= =?us-ascii?Q?U1umTh4sWPiiem8185zq+WURCGfc41iPv++xH8Y73Lysa+mf7DT1THufo0Am?= =?us-ascii?Q?UFQVLzv9iKUdDTB0TQjXVkrhIHR6kvqYMf4zWgDARiqIDT+wzIo+BWEvz/fJ?= =?us-ascii?Q?yV1qsl2EjzSyezx5q7EoCQ5ZrDrYZCSqe8wLW/y34rIcGcpZzLxyKm8v1oee?= =?us-ascii?Q?Vsgzw2gYC1xCsqXy4dXQQkei?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b281a630-78ca-4a9f-8ab5-08d93bc62a16 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB2714.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2021 12:54:14.6668 (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: AHRE1FXZvbjJh4f2ErvE6xV0nJgO+ERSfKi/Am2GnQ5owTXNibcSSGe/wknzYqowD3fx3bT19RdlGhqyTU5BVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0076 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3275 Define the PCDs used by the MpInitLib while creating the AP when SEV-SNP is active in the guest VM. Cc: Ray Ni Cc: Rahul Kumar Cc: Eric Dong Cc: James Bottomley Cc: Min Xu Cc: Jiewen Yao Cc: Tom Lendacky Cc: Jordan Justen Cc: Ard Biesheuvel Cc: Laszlo Ersek Cc: Erdem Aktas Signed-off-by: Brijesh Singh --- UefiCpuPkg/UefiCpuPkg.dec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 62acb291f309..0ec25871a50f 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -396,5 +396,16 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt SEV-ES Status gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016 =20 + ## This dynamic PCD indicates whether SEV-SNP is enabled + # TRUE - SEV-SNP is enabled + # FALSE - SEV-SNP is not enabled + # @Prompt SEV-SNP Status + gUefiCpuPkgTokenSpaceGuid.PcdSevSnpIsEnabled|FALSE|BOOLEAN|0x60000017 + + ## This dynamic PCD contains the hypervisor features value obtained thro= ugh the GHCB HYPERVISOR + # features VMGEXIT defined in the version 2 of GHCB spec. + # @Prompt GHCB Hypervisor Features + gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x6000001= 8 + [UserExtensions.TianoCore."ExtraFiles"] UefiCpuPkgExtra.uni --=20 2.17.1