From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.53]) by mx.groups.io with SMTP id smtpd.web09.39.1622070701830167716 for ; Wed, 26 May 2021 16:11:42 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=ih8PPBqn; 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.244.53, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZAzaUyGaJSVhS3dfh61a2GFHlbX/dqxQEzoaS04nfaz4cw1LL3fM3cqtZOO0fLwdei1GCbG72CdEfGaBAa1ycwVbF5Vz1lUCE9v5YRUGp0S6SxHZd//3O7h+grZWwDV/NoFt0dGBhr0ftDjmGmaF18nLZod6TmAsoNsYixIEfkmzbLZWOpwi3y9uyupXnXC44iVdGKL7XLWnHGFKOU+bO/86p4gLxbUiHpLWtzKw1ANpLJHaaGGYrOHzVUpnQboIC7rgcypVWiW2lxREVGx2/Mfg8t1Y2UgXfJ2taNViNmmOuwEqxXqdMv+cebZtGighKI93k449VuT8eJVLJ2LelQ== 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=4FUaAMM7+o5lc4Mpg9ztQGH/324P5Dl3xOX2uW1of30=; b=Y3r9ip79EctRisu/AH0u0jZHEVJObfbxf6iEyrTa9zCgGCFv7VGIZvex/OcdRm4nNq7g/ADVnq70+/FaDY8NPC3BWVAeuJLhW8W6v/s/DSu20/nalyDrtth1sJ1ppNe13U0wCyGi8WN8FIH7YOAHcJDN6iQ+WI5ulSTeVhgTuAvTEgnBbiuwD7syXyBmN38P8rcjBcFd/9BlwmIOgWCM7YRoINNSmAbNbTdNtD35xMdlBBCp+OIpyHSutfFTf6DbFTgJp0L5YCO9orM+x2WUfWZwiXYf1TxJbhR5u2ltDGXEOrls5KRzzsoBsa+mrWDRbhz++HujhLoMG4f0Ii8cWg== 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=4FUaAMM7+o5lc4Mpg9ztQGH/324P5Dl3xOX2uW1of30=; b=ih8PPBqnZO51lZCnfBEGX7tsvef2xpy/8Yt5aeKb2AklVSi0sZuNaTxsJR2+9n9IIYzu/P2WVNDcWTM7uyNk4W/EIcMqTCpvE/YzXXXi6EJRBarYe3XH8XziGN2CTowMW+AthcoAOf0vo7fqs7JEV2KEe5iGoPsjY7ucJZseBwg= Authentication-Results: linux.ibm.com; dkim=none (message not signed) header.d=none;linux.ibm.com; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) by SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23; Wed, 26 May 2021 23:11:37 +0000 Received: from SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::9898:5b48:a062:db94]) by SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::9898:5b48:a062:db94%6]) with mapi id 15.20.4150.023; Wed, 26 May 2021 23:11:37 +0000 From: "Brijesh Singh" To: James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Laszlo Ersek , Erdem Aktas , Eric Dong , Ray Ni , Rahul Kumar , devel@edk2.groups.io CC: Brijesh Singh , Ard Biesheuvel Subject: [PATCH RFC v3 01/22] UefiCpuPkg: Define the SEV-SNP specific dynamic PCDs Date: Wed, 26 May 2021 18:10:57 -0500 Message-ID: <20210526231118.12946-2-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210526231118.12946-1-brijesh.singh@amd.com> References: <20210526231118.12946-1-brijesh.singh@amd.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA0PR11CA0202.namprd11.prod.outlook.com (2603:10b6:806:1bc::27) 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 SA0PR11CA0202.namprd11.prod.outlook.com (2603:10b6:806:1bc::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21 via Frontend Transport; Wed, 26 May 2021 23:11:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df18a7ad-d3a7-49c0-b085-08d9209b9c78 X-MS-TrafficTypeDiagnostic: SN6PR12MB2718: 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: 3yt/oRyhJW2I9fy7Lbp/ZIOunPgcBbcOi/ZKIDwHzrIPDtswpRBPHAq/oLr47aqfOIm4S3dGU0JcKXizeiZt2UPYpjSIn8JgNldq+Plc6gpuiN3vR1Y9S0tAaAvw51TMXrPmx7zZQvnzUpWncqwO6MZA7zbwJUjKFDFN5KnzzeqrWxNZCzc2dxuSp7Iv42/f0I9sbHGNs4iDK4frBfXxFS9goy6nMGJdkQZ+aSUESC6A+t1GqNSVPIZeNOiPmdQKyXD14SEIf77rxWZDMP9AwIuDvf+S/l8uDIqBQXV1Zpr1WYkL6mKATRV42O13lAr+yeHkfPrrCwAQLFyGIowSrcJq2qdVVBG+8EX5N0oB8fTGbSYZ79iCjpvCdQi9o1tQW/Xu2YskX15HZPuuJO5N+zz+uq1UiqynzUxImM79/HP5amcoe+d/D2vVKBd14fcUp3trFr9O5yJfGI/Tei5AuSeaASYLYy7dr5uMjkV/fTYbq/TISBsiorwmQi0ZIJCsEIkeZllH0dZDXFuEbruCSPQotrIJvQG3cSO/CjrTXIoUsKXHVs+rFf78IHw4rFgvzU3tFdSRGPZAdeoUWgf6lXH7e/cPzCjRGUjHYU7jEG0tfUxfBSuB9S/yjdh1XxuhDWrEYGK2+XaCnHb8km4XMA/VLNWMjxoX8NjH5Kk5x6+XVsolHIsbC62fSf0PyAlDhBRVgYERSHipUTVrw0PLgP0oK9j1wSiuScIcRKdpQ7r2L8XC3JKg7csxpAYzeHHV/gA3RrdrhsMXS+cnkSK95LUn5Pmxr9KppKwTPSuh71Q= 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)(136003)(366004)(346002)(396003)(376002)(6486002)(26005)(2616005)(6666004)(478600001)(956004)(66476007)(36756003)(1076003)(8676002)(7696005)(52116002)(8936002)(44832011)(86362001)(38100700002)(38350700002)(54906003)(2906002)(921005)(4326008)(186003)(66946007)(7416002)(5660300002)(316002)(66556008)(966005)(110136005)(16526019);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?Sl0EPeG/MnUCyzvWVR9sk8RTJM1T8fpuTmXX8urODXWVDn20UvYbNk9R/LOg?= =?us-ascii?Q?oJAVyK/Y+KRl9iTTx3aTe6odClUA16ei1gJldj4aM9W1BWc42jeQ01tg0z88?= =?us-ascii?Q?jexlBjEL9d4vPAd64Tg+O4UyHs20MMQbCRIr2c19Bg6c/2rol6j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aUHpghdmsOHmMEEq5KcWjT5wO2v7Fkx6XAb9rvhKGG?= =?us-ascii?Q?GefwFBknPvgwhmZAT4rzy5SI8xzmGJ+d3AeUMgA2FJcC8dHf/PvcZwiInXVH?= =?us-ascii?Q?vftI1BXs7F7fDvudKjlYz37F784kViE6l2/pEgO8mhTIUtUZtSHv4FT9WLjl?= =?us-ascii?Q?61HbtXtzdSdVEBOQ88Bct5hhqqjvoq60XE7ZH2teW/8kqW3rXwbLj0NCZzHV?= =?us-ascii?Q?ciJwjnmEbg3/AdHpCkO72jVkX64CjznTYKR8S2vCVKKyqjU/SuWLhFqJ1/gY?= =?us-ascii?Q?DrYtm8qcsEGiPqa9pFwJ+RO0?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: df18a7ad-d3a7-49c0-b085-08d9209b9c78 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2021 23:11:36.9179 (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: kNmRUgSbTRAUmlSPru80J7PFayIAn95geRhvzm7b5+Sp608VwZwrp186maYl+r7WMvF7O5UmDzx+X2Tf9Ac1HA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2718 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 MpLib while creating the AP when SEV-SNP is active in the guest VMs. 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