From nobody Sat Dec 28 23:46:29 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; dkim=fail spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1495809883850597.7294769956205; Fri, 26 May 2017 07:44:43 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 31BDD21B0E538; Fri, 26 May 2017 07:44:33 -0700 (PDT) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0622.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe42::622]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E286B2095A39C for ; Fri, 26 May 2017 07:44:29 -0700 (PDT) Received: from brijesh-build-machine.amd.com (165.204.77.1) by SN1PR12MB0158.namprd12.prod.outlook.com (10.162.3.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 26 May 2017 14:44:28 +0000 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MrqSjOU5IrQzI04RiCSBoirdzSihPEcLCYMuwRiE1vk=; b=VfYWqguwFAvrosLZm2dvuMNJzcqDdzox1IvQsjaahDR12dwvxF4e6tnHfLctpxqiy8btBhB5uelUJk1pv5R/gTpvGM83ZtFLx8EQt07cQSuW+Ag4PlyEdZTtzVu2nVTAQjEjkRvfd3epH8eXdCKZNJaJUdLmcKCKYq5Xk+2e2cQ= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=amd.com; From: Brijesh Singh To: Date: Fri, 26 May 2017 10:43:51 -0400 Message-ID: <1495809845-32472-4-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495809845-32472-1-git-send-email-brijesh.singh@amd.com> References: <1495809845-32472-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR16CA0024.namprd16.prod.outlook.com (10.172.173.34) To SN1PR12MB0158.namprd12.prod.outlook.com (10.162.3.145) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PR12MB0158: X-MS-Office365-Filtering-Correlation-Id: ddf6eda0-7b4d-4a8c-5ee1-08d4a445b69f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:SN1PR12MB0158; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 3:2VnmvSqKqqywodV1bD0Y9lVBP7RWmBAD4oojGkBIo9A99zJvNVDN2bSEtrUqouhVnfCIrcJP+drdht04AK8hshDJ/2jiu3JBwUoU14JkOIAIkpgics3BfXkmrbTpCb1dYrieCukqTTEHkbvXZwevh7pw67y+l/j1DC7A2GG5+iAcuZGz4SGwy2CrC3oAM2gw/blQpYfWlSRQGtMmlnFoNaYPk2AFYJfUMuNpGmOBrKlHGMaHgkYqZoDPqNltyZoBJNnzsV3Xg68bqd78DKfJXSe8euS18dZJEFXQKMsv2CEOp0YjVbagnQFtoGdG9Z85U2J1gMQ9bzTRF2FLs923gGGRaliQUOgb+jXzuUsNLOk=; 25:qWMN8LJ+45MUqw+vASs4HaG/ed6C/H/YR+Ks9RlXl9x3CkHaDLLtPwbnidAPyOzaJgYk+JT/mk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rnjO5bbcSOkDipFEgv4WzD9AQKeWDTCEtAkJ25OUoyEJO/eUV6feTjbOPtFal1vfn2wiJwbSnMNgnhjSxrELWIXLSd1N1dH2z6qh97Q3bac/TtvYpMFoDS7YVfOt5rh2DM0jWxN X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148); SRVR:SN1PR12MB0158; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0158; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 4:YGeAS4MNzY1IIweiSoV8qrHfyS6iKsgvhEaP0RWLuyqIaMnpSHB+JbhX1m5BfxNz123+FXm3GBf9Wj+lx9zXllMTIBLI2KGGAHP7LfpwQ0pZmQxGbLA2fw1kbZ28kx6kzOvXvqq8CqmTefOtrBMyl7Pdxrh1pTKvtKUew6evEiOQ0r+Cw4dImruBN2kccR75OH9ztSHrHZBRxz2e6MgzxZ5C9V41hjLqcM6TONhzKRcNRbtvev09pyF7K6cnw2dB0uefrWEKBKFgxkwqEpoFXDLi+iwjpW395HOFOO6SZ0hjRK+fKZI0GSgI0uTSSQeZhoVBNqzEhOxvdFF0i1fchZ3FCgreOHdrVCZeKIvfDxwM4y4vP/ppV5I+HwzePEybrK+rMFLibgwV+9aqRi3aKZHxFEiyxYPksDSbEhP7i0i6vKz0btTuiebA6PryCVTJMkgf6LlftT5oCBnUfEzY9zqhcZDHeNqO6EbrP5nA3GWDgMMmuvU+Ce5bwGrP19FDuLUHo8wZ4d8EustfToLGsKlx6P+3AdZbBu7oLANxfFq7RybYl5Uu38V8OhLPwO7yAV06JbFrNguRaOUkRh1hhEp5l9WR9NnsmSj8P5SXmTFFf3Qc/O192R5u/Lq7uPzdeoPkq+i+tJJpeBTyE0dn4T5Rl5KL3smh81Cfshy3ZjNPOwsnzP8xpueYw/Os0HiaFPvkQIJJmvwuxtzrlp8LZEz6V+IZWgv36/r/vFHH1hsa1BVmcqpxJUjEg3pkhc1LqrjVO70Ql/Lig41bMNvkalFewLRoWtvfx984HQEyPtmg2OfTxKCOcwgyLLq8dovnx5VvKc4fcI+OOhByuTf1EbpxDQW1yHVISKZDpZBWtWYq7P/5+e6mNRttjYRvzMwV X-Forefront-PRVS: 031996B7EF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6029001)(39450400003)(39410400002)(39840400002)(39860400002)(39400400002)(39850400002)(2950100002)(6916009)(6666003)(38730400002)(110136004)(50226002)(76176999)(36756003)(81166006)(8676002)(53936002)(86362001)(15650500001)(478600001)(48376002)(54906002)(25786009)(5660300001)(50986999)(189998001)(5003940100001)(33646002)(305945005)(6486002)(2906002)(53416004)(47776003)(2351001)(42186005)(3846002)(6116002)(66066001)(4326008)(50466002)(7736002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0158; H:brijesh-build-machine.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0158; 23:kk1Fzv936Tv8WV+D2pYJtqusU3Ra+tfNbGGFRvc4q?= =?us-ascii?Q?TNpAW1wZDVEA6LslXkmmj8qyo6Dnu10Oc39QVtqeBxRo+eC48p1W2kv7P440?= =?us-ascii?Q?0JjGxfLuzHx2hRGsc4r1vclvTttex61UV4DUPsmlmDbsJ8ESqMO6QX7w4lmT?= =?us-ascii?Q?sz3WXm+I1Swhn03fxgr7JVaN4CR553dG5DcY7ZOZtEQoVmb0pn3DuFVAHB3c?= =?us-ascii?Q?Tk1dOmPvbLddAeISQ+MgrHyrFyJpXmLAgV5QgS/fzbxvF4LvclNG5Jdibj+4?= =?us-ascii?Q?OX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ft-Exchange-Diagnostics: 1; SN1PR12MB0158; 6:uFO5wW/XRZaiDV819R7a/H11XrdA5T+fzqm/RnxqZKtECQHe0mXbSgB1/qq+PkfUAezT6UewNuGIP+RL+4SeaLMda6y93GRCCpdKgf0GbKc7slhSmzxfeuqIbUqKELMWOUyWKjo0puwYtUauWl/gPfvNSUFcF9R+vltGkJqm4ZKEIAnemTPBcHRnL4M8SLdyqzDMMdtshiHPnvZD8ZLEOTE+eaGfE78N8ncLa6b0A43DTshd2FoxHl57bttdklq5pZ42t25mB56T9tAZvgwXcJbc/kKGczOzpyb3x3y9wWJgs+EK8QVzBHFcHb67rMk4+t2XMB9fHungBnv6t+jKdVXGYYquDiB5oI8eHStDc8cXNyCI3FLN/64nm1qPAD7RoszJ2v/tPbE63uPy1EDbhoahwKWNkyTS+/3Z2y7Zzar22jAjE1ZBcUPlYPZku8NgkAOjju6iVl8pO2dosTSA8pRHy265gAB4q+v8YMTmkRC5vvpKF6EkreKJ4JCtwJudtnF1XjpLiwixC5NDMT9TVP12EZqivcy/aL3rxxa8Cmo=; 5:3Zaa4LdBNZNiLbB0dxhja0rGzqhsjj4N94mgBYAsQiaT3jCFBNL8vLWNStFuESrA25QTh8DrMQJpTnzsDnGOjiAGCDdAh1XoP9MIC1k9OyjV5O7mtS5WsqoyB6ceosOwokBfscTYA2gd+A+jWPHr0w==; 24:zJqvi11uCnSt56+LDdOCPODKtwSbaZvtv7PXthASFVr6fz2n3KAP/1fdr/CCevASEZzoRB/i8hfEgZuOILP1ZGGffV8yLP1R21ohldpu2GI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0158; 7:/4VT+2VGN98iOtLuracE3trJ3iJG40OIAYhjLEfsiPnumK/pHDPCfbEHIBmyMVNzevO9KnkYYFrOi/nN+Z0qeIShhpz6pnU62eXD8c5IiVpAjoK2VbGf8TjDjFmZg68/lFn3UR9rV1QZU1eXratMJnHvEEanydSay2umunOOuBvrI8sqMU9a+pRFTW5L671B4ho+2ahe8vLYo2ZPb/qfSnVcbqxB80mvPlWBfHvYooS8niNW5tTBGW+Rxc+OTDtKHR2EPk6vB9jMt/IfD9lSouu3d8M4yUeg7uxtDYdnWa1fEwk4NoLDRoxAWfdRhGr2eoYSQlrHtTZTU2R72WgZfA==; 20:WzY23+A/UirzOtEzEJAfr/th+y93AhLRqcCJtiMl9I8DKUIhUsQmixf036Kyc7dmkrsAyM0h4dgH0Y+pvDeXUYALswx72TqIygzieP3hshp43Y3AUOFymqSxZ4tRRLap50Vtd6uB7LYeOuFp9+tLrK3VlRDeJjt40jkb0H86rPIrzeXSaTLUHha6ZS3nZhKRTQKEyH4miyEcHbuhj9exkDg4PbmtXTmIewakFfW9AiBUik0luhdupHr0dMYvifSz X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2017 14:44:28.4905 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0158 Subject: [edk2] [PATCH v6 03/17] OvmfPkg: Update dsc to use IoLib from BaseIoLibIntrinsicSev.inf X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas.Lendacky@amd.com, leo.duran@amd.com, Laszlo Ersek , Jordan Justen Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" When SEV is enabled then we must unroll the rep String I/O instructions. The patch updates dsc file to use SEV version of IoLib inf. The main difference between BaseIoLibIntrinsic.inf and BaseIoLibIntrinsicSev.inf is, SEV version checks if its running under SEV enabled guest, If so then it unroll the String I/O (REP INS/OUTS) otherwise fallbacks to rep ins/outs. Cc: Jordan Justen Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh Reviewed-by: Laszlo Ersek --- OvmfPkg/OvmfPkgIa32.dsc | 2 +- OvmfPkg/OvmfPkgIa32X64.dsc | 2 +- OvmfPkg/OvmfPkgX64.dsc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index 0647f346257a..b5c874b65afc 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -122,7 +122,7 @@ [LibraryClasses] PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.i= nf - IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHo= okStatusCodeLibNull.inf SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index 1182b1858a7d..1d071cac2bef 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -127,7 +127,7 @@ [LibraryClasses] PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.i= nf - IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHo= okStatusCodeLibNull.inf SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 636dfb1b5638..2bea75437788 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -127,7 +127,7 @@ [LibraryClasses] PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.i= nf - IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHo= okStatusCodeLibNull.inf SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel