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 []) by mx.groups.io with SMTP id smtpd.web08.10381.1619783543755812561 for ; Fri, 30 Apr 2021 04:52:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=OotIJMaM; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: , mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PRpx3RJD2EHxUCbBGdaPWB1Po4ZRPzwogMlFsuECePiu1x1L58ZOI3RMPp8ysvUCGbuxTEwG9/WwwEYRWHPyoB1SMoIEN8fmReoRrG+vuTki3/tQb3YSv52UZBRIkWPdZok4rszMAmQdj410a3aczYnDQv9xgzz4Rh5b4627PAZNkbthjyiAsIKwsxtiGksWC3+wvS9+V5LSJi3L776ZuXkQZxUAbJX82SBf+QremLBccVMh17NdN8GbBymq4MjiUmOY0c1JpbzZwVfQYDiurw7R33VHfFabtNoDb+Nd9Ygalf2yofRw1agPp+NcylBFo7zayMyMWTDcC650pJuw0Q== 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=VYoSZC7KNLa8LCZ5+YOr+9vsIFa7GZtoPkD5+jOjyPI=; b=YaEscsNULa7ffhbrnA9mFSKiv7GU7TrerF9NfTsCo3ozEHif8MnakyfJRmbIV0vWt4E8lkHyWiDEZdc+sOqcaCxX/rQRnAIfjJVRa7W4Nzk78kc6wQJqv3Q4OwxCzRRsrwKIX4mlcDx9UgR6oB+fMhAuWqTI8xkAgJmq2ejGgMfwTxTf8DunML/XSm16hnjJvHjNck5HZbK4IYdfuoiA2nOrkdCi8vze9k7mP9SZLYg5F7nqH5H0/ulp85/5YDLQG+cC1vw86uuN2hkbylaRaQnw0yifskKtTASF5Po8DpB3vrLQa/mfmF+aGtuelEoP2vK8zHwx/q9hKZxIdZCqcg== 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=VYoSZC7KNLa8LCZ5+YOr+9vsIFa7GZtoPkD5+jOjyPI=; b=OotIJMaMrqFNxGH3OUQR9idYkSo7CXJzrFfxfmpQXsKVtR6NcgTkbLTLYcCkx76AsmIMR8w0UAGdGeLu9DEqGSsAw1at2Ynk9YVYPR+IzhDSSV4jtTN8w+B4mlLMNv2WEw+xWOcEMbcfJgUhMPQt2DiRkQwIv1G2zFK5+AhwQMM= 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 SA0PR12MB4349.namprd12.prod.outlook.com (2603:10b6:806:98::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.23; Fri, 30 Apr 2021 11:52:24 +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.4065.027; Fri, 30 Apr 2021 11:52:24 +0000 From: "Brijesh Singh" To: devel@edk2.groups.io Cc: Brijesh Singh , James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Laszlo Ersek , Erdem Aktas Subject: [PATCH RFC v2 14/28] UefiCpuPkg: Define the SEV-SNP specific dynamic PCDs Date: Fri, 30 Apr 2021 06:51:34 -0500 Message-Id: <20210430115148.22267-15-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210430115148.22267-1-brijesh.singh@amd.com> References: <20210430115148.22267-1-brijesh.singh@amd.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA0PR12CA0006.namprd12.prod.outlook.com (2603:10b6:806:6f::11) 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 SA0PR12CA0006.namprd12.prod.outlook.com (2603:10b6:806:6f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Fri, 30 Apr 2021 11:52:24 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f1ca3608-c52f-4fc4-7ff6-08d90bce6bab X-MS-TrafficTypeDiagnostic: SA0PR12MB4349: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qB7lmWR/Yy+QWqSao2nZ+04gHO9IdbvZtYEgdIFgbSUJgH94K071z2gcS/DsB45nADjWz5rVIzonsntV9WbNI+O3T1njMPlOqiHgxmMnm7BTOwyj9vV2LfB9pwpjGnr73beN2O2SnDuUuTPZd51piMVEqhLRDhulsmXY9LwT5X7Cj8DM7LieoS1uMnHr7iXlqqaqNDaFzXPc6RbFJqN85aP9NvxWDi2cWQxnuUE89pYXi8Q+YvyFleNd4Ak6AIczqZEzuXfkyXHrka1gl/FyFGVbksb1/caYcgjhGPCV4V+Oes27wLuRUyn5W0Mn/5Y9Xhf4jzwzFxsnRka020eQsto7w6mf3EuomjnPPIdkmEBmnM6WKyt/cljDCcAPVAtaPHmY47d2ZvbXQ/NYmjkNMURhMb/7gGOtjttS5OhZuVII/DI0BaTBnEu+mx+fCSOCc3zkFzX2bT60S+k+8rTTJStY6jWOXoG9jRORJ0jIRRs9V1F+SZYvt/cN7OLgHvV71Dxj/DizUeSvmWLaWPbelnLR3mmAsMniP1EFiRV6wyHNfiGMNIuB9S8x1mn0gfM4FxtVDnyr6oWpHEdpOzUZIWnbFY6kTVSGPhCG2brkOIdAHdLeZmbEKtqVk3wb5Z15zvMll0ijaV7pakAOkLpMAasHOAOXMcCUDsF/UaoHtTnDZuAt2vRMncFlB3OA0o7p43Ibk0PSuVnBl/psVvbvsRDsasKt0OTd5sdT6Z94nZ4= 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)(366004)(396003)(346002)(136003)(376002)(966005)(38100700002)(2616005)(26005)(1076003)(86362001)(316002)(6916009)(8936002)(6666004)(2906002)(4326008)(52116002)(66946007)(5660300002)(186003)(54906003)(44832011)(36756003)(66556008)(8676002)(66476007)(16526019)(478600001)(956004)(7696005)(38350700002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?6y72GYKMdwIAjbijSILgzyuympYPqF8/tTOw/8jqwO+ABzSustaz++qDY3dD?= =?us-ascii?Q?r2q0J+7J7H3B24k5zb599lqPSZ2st2N7KRt+w1jtxHfZb0XnMI7DTYQIZf8k?= =?us-ascii?Q?+TGkdZDHPlB9aMQUkRGx9OY2VTeGm9SFYKdDRABwmiAsUsGJGvg9AkFSFuId?= =?us-ascii?Q?3SJ2CRC1UpH+bu9hV6zaNXHSOR/RbU6CsPVvf5MrWx+iyJG0gPc9jyYBluSx?= =?us-ascii?Q?gjAIcnql2p2ha0YXHumw3sCpQvJzt7dT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= =?us-ascii?Q?PhgjmrNsfNRtHJUoXyoPrlBfPuwQZVC7deq6eBw2XcsXg+7HU5QsX6h78QcX?= =?us-ascii?Q?l4mUmiM3vdotIkmkPwCXHTtaHUkBoFwWcfqOTK4mbw5HXKaKyWNk3Hg7jzZM?= =?us-ascii?Q?qNqDzYX/YRbG7nbc2W1uPWjyamxvR92yboaSAiDGxMZWSKo7XzSq+hlRis60?= =?us-ascii?Q?GFu/faNUot69H4DU0EZOEZAu?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1ca3608-c52f-4fc4-7ff6-08d90bce6bab X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2021 11:52:24.9164 (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: mgPmDR991kyUIT8t3o60ufrJGFnEoOOfkuQbcp8S9vReSYjlBmYNx8u+j+EfSfDiWIkJEb5VojCANoPzr9aZlA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4349 Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3275 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 62acb291f3..1793769439 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -396,5 +396,16 @@ # @Prompt SEV-ES Status gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016 + ## 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 through the GHCB HYPERVISOR + # features VMGEXIT defined in the GHCB section 2.2. + # @Prompt GHCB Hypervisor Features + gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x60000018 + [UserExtensions.TianoCore."ExtraFiles"] UefiCpuPkgExtra.uni -- 2.17.1