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 [40.107.237.61]) by mx.groups.io with SMTP id smtpd.web10.176.1630513061970038126 for ; Wed, 01 Sep 2021 09:17:44 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=Oo2IsGti; 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.237.61, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nO805k6JggaHyVLwTZqG8vY05QtsjaVRUiHx2A1sQtc1jfpchRIwhZHc2Bh3H+Srz8miSQ2ZB0Nzp/ertUc47gK4G94HSNd21dR2whCKoM15cBj4pGPguNJ95BWPxUWJZKCOcj+J0HjqIpmlb3wiiIbU0cvuS4nnFE2AB68dfv18FRzrV6bBrexVbyKerW1kCMeyS4Ca92RKF9Iaf39RDq6XkIajh9sTZuir7ZwBT9D58zIJ/W4apeIbhtBjLXRKuBAJeIzGjXz4GtzqgTmbdbGOGHq6L2IJvXe7hS3ER7vDBw5JJf1h/r+T700bPqHXAMi5stpQLeHTfkFisF4r8g== 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; bh=lKIY/ZENN4btwppjuQdsPHtE42ZTfYv3CTY8kA/e/sQ=; b=HM+VNG3FyD9ieRsxfMh286Z1Zc1XCesUYX7mr5quiFUeWHJupOoCJqJrSTu9Z3Sh+PWDVPrQnV19/UVDvuhBrtSC1k9AJNhNOZ5VAj6bgsyrQ535yF2AvktTFxKm/KVmgkL4nODTyuO0sIZD7f5aY7oWyDE+M1xykCTxQGmarDYk4rDrxSvD+qMJ85DM5AxXDBGQyjpTJKKkImOmuqtbepZ1C2a+k0ZD8TRrf38v9eQzJmdATme7WDsdvRxfF7CCkn+T7fRHnOy0e3918pxv2RgWavh6smrOwBfsNYZ36EDIzWAGDeCtf2rSjZdOKrDhCmi5gxxzsU27Ul8BMR4OKQ== 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=lKIY/ZENN4btwppjuQdsPHtE42ZTfYv3CTY8kA/e/sQ=; b=Oo2IsGtiDc5Uvcv87V3tKBn4VB2kX46/yTLlrByQVbPB+Qi8xAGOOadHYqtS6NnpiEUOdk+rRVy5rQN9xm01/muiKVHo1BsbhjuZOT+cdC6Z3eMaw4s8/g7etGcTxtemZYQipiW9bomCR7iaoBNrUw1DWYpDAEpTAlIrL6ut+9I= 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 SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) by SA0PR12MB4415.namprd12.prod.outlook.com (2603:10b6:806:70::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17; Wed, 1 Sep 2021 16:17:40 +0000 Received: from SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::78b7:7336:d363:9be3]) by SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::78b7:7336:d363:9be3%6]) with mapi id 15.20.4457.025; Wed, 1 Sep 2021 16:17:40 +0000 From: "Brijesh Singh" To: devel@edk2.groups.io CC: James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Erdem Aktas , Michael Roth , Gerd Hoffmann , Brijesh Singh , Michael Roth , Ray Ni , Rahul Kumar , Eric Dong Subject: [PATCH v6 08/29] UefiCpuPkg: Define the SEV-SNP specific dynamic PCDs Date: Wed, 1 Sep 2021 11:16:25 -0500 Message-ID: <20210901161646.24763-9-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210901161646.24763-1-brijesh.singh@amd.com> References: <20210901161646.24763-1-brijesh.singh@amd.com> X-ClientProxiedBy: SN4PR0501CA0062.namprd05.prod.outlook.com (2603:10b6:803:41::39) To SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) 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 SN4PR0501CA0062.namprd05.prod.outlook.com (2603:10b6:803:41::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.12 via Frontend Transport; Wed, 1 Sep 2021 16:17:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d0df092-f110-48fe-4b4d-08d96d6404fe X-MS-TrafficTypeDiagnostic: SA0PR12MB4415: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HpaYr6ish65xPoxQQ1Pt6qrjZXqqbB86cfS8ew7lwoZaF1EOrnOmmL/iTt1miYHophJoEnfuvihODePqMHiQT/lPUYyHlpwH9RgW/qY/CZnvVBaI9PFg9x6wLw/q/s5KJfoRRjXCVbiMtZveCft7nNvWsFCZbqAJj1uMsGjvhpuESP0qLZe1IpppSjfl0fitko1bJ8e2FWP4daEcAWwSxU9YUNBA/O89Rr1MTYQYQ4dV9NrL3lXs6qqSRDZqZJZ+HXA5z+JeluwRnhQERuJWdl8BiUlgGJ7N2G84Mj2wffZhXkwSKNpGOP+Uex2wlRrFhb1KejQVC/+nkFAI49VDFuSySLro4/KJmeRSIy2BZ+zlagwglp0o+Nz7kP6EJknsUTbJ8IdgOWrTmeQCyzYs0M48vGmwHCiTWt/vUwCXj1OLs69cwH65Ik+9Nd9+fVS+7IJwL9av9jeihowT4f2rmeOD/GU5f+HXm8lVI+kFgGeDeSuul8/Qk3xKlXcjR9ekoAAIOa4u/Jr971eDN02e67QZyB4fhOJPTR9vuvE3SsP0Dz7JnhSNC0jZhOcFrPPzT8qhNm0LsiU87Vg1JXfQr8xWz5+s8y5HYIUv1X3gfj/hG6QU33hcmOWyWq/5ctG6MTpWpzWEcmaNIDCwOWo4lnl5Fyt7NpWL2/gOLNvG1IbmFRMPlvgP8oIx8kz/oa0ABiTs1oFhv4bi2VJnk/+oGS9mK6X7SGglvu1RHNaGDVP8esqDBuJExb8rzqlS0CFapB55T07Vmjp/PoCD1xgpWwuG3zqnlnk6JQmf4E/H16M= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2718.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(376002)(136003)(396003)(346002)(366004)(66476007)(1076003)(6916009)(2906002)(8936002)(8676002)(186003)(26005)(66946007)(86362001)(66556008)(316002)(478600001)(966005)(44832011)(7416002)(2616005)(54906003)(6486002)(5660300002)(36756003)(956004)(4326008)(6666004)(7696005)(52116002)(38350700002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PHO+bA8rloiFWKreZMwAQNCDqFiSDNkh2y+pUjUox4vdODv5pa2K+dlAvZH5?= =?us-ascii?Q?1O20kf8ksyRcb+pyAGz3HZj9Z1GADPZJkxPFl171EO56Dl1HM4tKyXoYGdm2?= =?us-ascii?Q?NAgriHZJnp4T3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VRRNY8L?= =?us-ascii?Q?LmeloMoVX2ldH9LEUpAJdEUD84IrAEMUToFFYWPnXgJMXtXVjROL3w2gMY0e?= =?us-ascii?Q?xe9pVDQaHgvfzUJGbkW+o83iXt5MHjlVbXDH57slym9Gqq2IAP/Mqz9xdJJ7?= =?us-ascii?Q?XncW+JlygluS3oZLvFNupJkuEFU3NqJUoZHsfZH/Y1zMwdDKq/hhQ2ij2anG?= =?us-ascii?Q?jebn7wzcfvOGBit1C6UHWmiksJmtlleFrlC64TomEa00jwljJ75vVcZTm5iP?= =?us-ascii?Q?JBb761cAy3PZ9HacwTfPD3qOTeRuLoR6kQQATHZUfl7zxfToVKEfMSpH2Giz?= =?us-ascii?Q?NrCNaPN+BvC/2j73bc01x3vQ?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d0df092-f110-48fe-4b4d-08d96d6404fe X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2021 16:17:39.9666 (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: E3KhFheTBQAfsdVaCsOCifbZu9m/JqdwX3JTropjrJyRph5kiJcK3/xDYrCLv7YCAN2w19pchAbF04/GiF2nPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4415 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: Michael Roth 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: 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