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.78]) by mx.groups.io with SMTP id smtpd.web10.5601.1595366397837123202 for ; Tue, 21 Jul 2020 14:19:58 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=qialhW4j; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.223.78, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A6/3rS/mRVTqRb1PixzVseD7jrFepucZ8KvSYOLvTQlLP9SIZ3ffsgdwChGv6VUP/FWNk6V50aFmk0puA7mFxrNcgGpSeuSqI+8utFrHTwL/QjC4CdXfA3wGlYc/lZlRzaQCUGNMKVIRo0WyLB1xeYPr+Sf+3oKOuZlX3kEE5WgRZhUEsPJyASCGKloQnT597q9kwFT7yzi/sGZLKSuznUcNMAaAPAJp/zMxCs0byxAyWsfFvR0+blyUTDp/NrSQf3ut8yFO57V1S/wmjXdAy06DtZFP4PU5R/OiKX9QkOBzPBb4FXibJ0zbQM5lwiH/Y6DApZQITfDSKkwSvunEVg== 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=iUIg1b4EwDhKpEO96e51MuPrwJUs/s5zD1/37hv4dng=; b=Qd9cYiSZbEgFRMpYYYub6MFK3aniPtyTznxLUi0439v5HLAcs6K31qdQ5yxhS6dPZumLgLfKETCP0zS8w1bvow48mKQ1P/1l42XlkznHOCG/i0SydqzO9MpmA64R/wbPVuM/vBSi+TauMl1YipXvn0upuT2I64y2wFJn945cA7GPRsdGFSyuz6ARRgI09f4o8VrjHtHwB8oFn/p1QZKpiF9BrC/cRsm/xrIf9huxxrDJKO7MeRLkKHC22YUGVVMSupq2l8SYG2HTp7xiBkqcodyVjjmrmVPTk/gNr/HruC7coZ9JPwhJEFhw+sAUvLYUwSPYORIwQ5CtQbqx210cpw== 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=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iUIg1b4EwDhKpEO96e51MuPrwJUs/s5zD1/37hv4dng=; b=qialhW4jl/5xu6zzJAo0nJ1yQfSc1ZznEWDRgt9XOEI3WCdFcq6Z46dvsXBOZEea8esMqMqbn3aPHUmHZ0ND7tNHmz6YMuPsQwCgKEGgsNRGLF7h4mcwyILtyyRhbBTn5OtGUB6o5J+jVp5wL7GVSI/49cmCDrMUpBYKsMhszCo= 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 CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) by CY4PR12MB1606.namprd12.prod.outlook.com (2603:10b6:910:10::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Tue, 21 Jul 2020 21:19:55 +0000 Received: from CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b]) by CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b%5]) with mapi id 15.20.3216.020; Tue, 21 Jul 2020 21:19:55 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io CC: Brijesh Singh , Ard Biesheuvel , Eric Dong , Jordan Justen , Laszlo Ersek , Liming Gao , Michael D Kinney , Ray Ni Subject: [PATCH v11 02/46] UefiCpuPkg: Create PCD to be used in support of SEV-ES Date: Tue, 21 Jul 2020 16:18:39 -0500 Message-ID: <05dee7b7fcdf2fcfb748008dff2ce9dbff3df7ce.1595366363.git.thomas.lendacky@amd.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: X-ClientProxiedBy: SN6PR01CA0035.prod.exchangelabs.com (2603:10b6:805:b6::48) To CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) Return-Path: thomas.lendacky@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from tlendack-t1.amd.com (165.204.77.1) by SN6PR01CA0035.prod.exchangelabs.com (2603:10b6:805:b6::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.19 via Frontend Transport; Tue, 21 Jul 2020 21:19:53 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a971a3e4-30ea-4a85-a934-08d82dbbd088 X-MS-TrafficTypeDiagnostic: CY4PR12MB1606: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qqx+c4rgxT2MbSTYhHODZIyLR1R06X84boPaI4WskY0+1EOOO8bw1sjGcvCbCxkNC8bIZGfh+QIeoQ3cjGak8aUUawR4EeKQdjHPas67crrn/0vaIJv3K87RLxqVVrhOXdGG9BG5yWeH0ZmKbqG+bnm5zGqEZ2XPJx3zbbJCrLrcZ4zFviVXrMGYTr6GicXfc8Vwje2uvZ+v3B4dDA3ihyd/oIMSCtmD5LB5G4lVLaWmIiGjWPtvJAX5hU1GIwcpHouqeK3HFkFm9TzjHaL0aWO1jOPgm2BZnU0D1NtaBRB5F7QLvuS+OWWr3A6oquM0vTGkzBueDUj2aD0tOqhz9J0IkiE0VLdDM5g8GcFyY01kjUQRDFWIp+1QZoWaK9Sv9wG2DqNPh+0DBPbsGBBbcRO61lgeAQfUpgw3JhYKLREXbcJb6efRMkluf5jexL6TBMUj6vmR0vmVwy2JPs5/YA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR12MB1352.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(39860400002)(346002)(396003)(366004)(376002)(6916009)(54906003)(2616005)(956004)(316002)(6666004)(26005)(4326008)(186003)(66476007)(36756003)(16526019)(66556008)(66946007)(2906002)(6486002)(8676002)(52116002)(83380400001)(966005)(5660300002)(478600001)(86362001)(8936002)(7696005)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ocw1r8IACKeBBZdPPbXe8HUVp9Su1Tz8msBcmOiFMZib4/5wym1eFVg1RB/iFIAQqRZsmE1xT0Z04Czey1GsIdoO8724sVZR5Psk5r92KWi2NltSH9jtwO3GwFJAaPf/+ZLdzY3tZeWXPkvGoxnw/0gfZnyYC7vNF942/evHOPiiOBW62n+cP4JUBetW6FzDFON0ZXrWekTNVpTi9jVlj3/JarrzjNOYz7SyUWEzH223mhHdRGs5D0sM+LmdL4vuGkeLsOthg1MMaFHM2s3fvR1aX3GxhCxDeFeflcYc9sQ2+fOuv4Is1Ow14fRksPJQLl9AJit/DBYqhZAOj4FQsWhU46KB8gYaDkL2bk2gb8Du7US4vEHbw5TUYrQIXM/yngmkJo15gp58Qro4+tF+UI5EwR/jL+3uVBDPgVJYv2240GZ8ogmf3EIn9bg/BsNpRMOHgB1y4VRWALLlCuabtfgCt4eZgRPZ0Y9e6eMRnbo= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a971a3e4-30ea-4a85-a934-08d82dbbd088 X-MS-Exchange-CrossTenant-AuthSource: CY4PR12MB1352.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2020 21:19:55.6295 (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: YGbheQZNFljo0O5erZN3uoB2bfRy5vNpGg7LjUKBQG7e0GDMcDtPXSxz3VElh/hx8+0B9b5N79HTk1SfF+0OLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1606 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From: Tom Lendacky BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2198 A new dynamic UefiCpuPkg PCD is needed to support SEV-ES under OVMF: - PcdSevEsIsEnabled: BOOLEAN value used to indicate if SEV-ES is enabled Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Reviewed-by: Eric Dong Signed-off-by: Tom Lendacky --- UefiCpuPkg/UefiCpuPkg.dec | 6 ++++++ UefiCpuPkg/UefiCpuPkg.uni | 3 +++ 2 files changed, 9 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 762badf5d239..df5d02bae6b4 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -370,5 +370,11 @@ [PcdsDynamic, PcdsDynamicEx] # @ValidRange 0x80000001 | 0 - 1 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x0|UINT8|0x600000= 15 =20 + ## This dynamic PCD indicates whether SEV-ES is enabled + # TRUE - SEV-ES is enabled + # FALSE - SEV-ES is not enabled + # @Prompt SEV-ES Status + gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|FALSE|BOOLEAN|0x60000016 + [UserExtensions.TianoCore."ExtraFiles"] UefiCpuPkgExtra.uni diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg/UefiCpuPkg.uni index 1780dfdc126d..f4a0c72f6293 100644 --- a/UefiCpuPkg/UefiCpuPkg.uni +++ b/UefiCpuPkg/UefiCpuPkg.uni @@ -278,3 +278,6 @@ =20 #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApStatusCheckIntervalInMicroSe= conds_PROMPT #language en-US "Periodic interval value in microseconds for = AP status check in DXE.\n" #string STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuApStatusCheckIntervalInMicroSe= conds_HELP #language en-US "Periodic interval value in microseconds for = the status check of APs for StartupAllAPs() and StartupThisAP() executed in= non-blocking mode in DXE phase.\n" + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_PROMPT #language = en-US "Specifies whether SEV-ES is enabled" +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_HELP #language = en-US "Set to TRUE when running as an SEV-ES guest, FALSE otherwise." --=20 2.27.0