From nobody Sun Dec 29 03:00:57 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 1494454192505254.59001645471415; Wed, 10 May 2017 15:09:52 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5A22021959D40; Wed, 10 May 2017 15:09:48 -0700 (PDT) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on061d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4a::61d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F325521A0BA9D for ; Wed, 10 May 2017 15:09:44 -0700 (PDT) Received: from brijesh-build-machine.amd.com (165.204.77.1) by CY1PR12MB0149.namprd12.prod.outlook.com (10.161.173.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Wed, 10 May 2017 22:09:42 +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=d7n+JeFWbgDHPNA6SBPtmjdxVMplBzuj5b2f7yD9JMg=; b=c4WcVaTyfqIGBvjhMl6cDvghcrL8H59xj/Lu8mCIkVJJoZdanmjA3UaDQM8clUtqK57EVi378aLSn8HoRwEvAJmR2cpnO1imjFQ5lrhW9pQ3tu6Kpl5QPn8jpWjj82y1DF1L3Cgl6X8Ngp2nYekYLb9rOTvWANo9bNAhF6T9cXs= 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: Wed, 10 May 2017 18:09:12 -0400 Message-ID: <1494454162-9940-4-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494454162-9940-1-git-send-email-brijesh.singh@amd.com> References: <1494454162-9940-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR21CA0051.namprd21.prod.outlook.com (10.172.93.141) To CY1PR12MB0149.namprd12.prod.outlook.com (10.161.173.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6e0ff90-b23d-401a-5282-08d497f1432c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:CY1PR12MB0149; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0149; 3:Y4Bl2lM9I7qZftgoDPsjCYuDetQtagK9NkLpaV9LbsbIO39BpEIbpWQCf+doM4lFv2LgKRJifxvrp6IKthjan/S2gaOMW9D7EHbkecjzi2M2hfRNLy5n7hI8Ib47LF3P/y+t2S4eEfOWuwoIoco1r7jMtw15c/YWM5SPsmAs2zeCf/u9jcAixr0CUAVhKTgAZJ11RQoBm20eeiAiTHeKnPSxubRt66AoUHhPYYAxY0DxTVRaVGLYcivlV0NOnHkGmvozZYvaqTP3uPmrj/nuLXoin6IC0jpZWKzgODVsG+YlEPRhU2O7B1HpUS7DST5Yqcbak7+HvqJ3jNhuPQyz2Vu/UufQJ9ZaJVT49rxOyjE=; 25:ilOknhr4PcIDYq0lf/WUIRG4LMhpoPCJqk/g7ksJcxYC/uUbUyJyKHKFaSqUJp+/Z9itRrIa31xTQmPCEmrle/GZeUUlwIi3Kw8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LfBuZCKCWP3PyobCZpONiDx4yh0e/EuS/a8E0gN045A2eVc2FmGtJwgVeFAHSC9LXkmwirMx+nJS7Dc5Z8E/hBzu99uCGasRpul5Tkzzo6z9+VBvOJHnYo8xSZ1V 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(6072148); SRVR:CY1PR12MB0149; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0149; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0149; 4:OR7bWWgRgwfKG8a3G5GSIqbWK+dX2BnQ8apiWk82jy7i7lvEb+jx7jqy0g84fTx2SH/RSHxKDElxvxVaMazPATGbpUpyAv77hUd9IlWUpRVkIgg6Z0BxJHGCoWkVbsyH5XbtN56mlYalXBRnZuOEP4i768eOVPiSkr/hldVGncW3V7F1QG45WGVct40tLF2kegZ3J5CF4dSnKxjp5Gy5FMOJnFS3w2COl/lNPOfAIKpxyyVaWMZ7DcGvUK2UMKgxI9HILBOi6Jvans1U+kGtaFkoKfKRo+F+JqqP901fV/h7quu38hVphPSiz+wuSp4pmvI+8DGXMac/lS1ZVUDIrqbIEYlK36+YFG/M6wLFiGusmsJrodWV1riq0vQT15zNFvXQpAdbqnzuj/kCJrNNWOBUa2vkIL5L/qxV5dF9RqesS0arnafWg2FBiMZXo/+aD2JQZK1F6gZkCSh3crHEg3d9W5bmhuzumslwZ2WohH1DMJM4P4fZsQ/UC7aCNja4jbgwhN0NHFD6QbAR2f8bJIv1aznY6pTQjhmDJEFyhVSaa3Dl2qPH41WQQ/PjA4wClIy8164yJdn2BWPErxa4egIZXWF2ToZC3gWhBCl5Ba4GiZuC7LAASqBjDwHCYwDb0I+Jg1L8H/PAduS/bFIBXZp2ZaegIHNnAVoLzHy4h0hX3GqJCzVyrXSuuBzKRGkux+WvVyuFjJuMOk/ggyPitlE1Ij9sjIxXi1PYgmLUmP2KU4oi9Xw+X8AWyNVqbjctrQlT+Evo1aIWIq4Pz2mfYuNxGXWNAVW4nOeci/+cZ7Mqgv0Zogmncztnk4e10Vycz3OOGJcEVD99pZ6/9RKYRqFbGWNQ1UiiwcdfLzxS27CKPY6IW94zeWxGT1JEBBN0 X-Forefront-PRVS: 03030B9493 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(39840400002)(39400400002)(39410400002)(39850400002)(50986999)(2950100002)(6666003)(6916009)(6486002)(15650500001)(76176999)(50466002)(33646002)(478600001)(86362001)(189998001)(48376002)(110136004)(8676002)(4326008)(2906002)(54906002)(38730400002)(53936002)(3846002)(6116002)(50226002)(25786009)(81166006)(5003940100001)(5660300001)(53416004)(36756003)(42186005)(66066001)(7736002)(305945005)(2351001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0149; H:brijesh-build-machine.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0149; 23:QP968y9Na1qNDn2uCDju3+PyBIjtgVRcahx4ScJ8T?= =?us-ascii?Q?DAgzv2WHbNsmKBClYYIe6yY6ECGRzGWTBrQWknh5uttkzqUMMz2ZiYoqKm1M?= =?us-ascii?Q?YlZQzIOQb4CgWkLkAlIjTMGGXJzWqfHQcnaq3SiGbDrxB1qQMj6acTILxaYp?= =?us-ascii?Q?q2HkbJBdVM1NfeRX2tiqG1nA5O8p1JtCvIqKxzICguSn47tTExK6XQaW2lBf?= =?us-ascii?Q?yLl24UlUyJjMVpROpAaIDiWX8VcBKzgxUzIcFXoD0Xqg2JR719Z+fLV8VXB+?= =?us-ascii?Q?3jshlavGGwk073t81GyAdl9EWWHuUWToggc7Pfbd/WzU0QDN7bpUAuN9doJd?= =?us-ascii?Q?ztiHHr1mq04Sffws8Q7BdtlmOneS+bwHaz7CHxgGjBSYC2OC8kmrdK/TAdO+?= =?us-ascii?Q?bCIhAQjdJv0itrqaGap7gnNL+FbpXSo2PToDIrslC4APIcqe8QquVPuxvBgh?= =?us-ascii?Q?tyz8MgQXjWG45ErYeZt4ADDyQiOYIz1/moaAnaqJArD+Tic2MWjgs8IRAJLe?= =?us-ascii?Q?AxC6z0E6rSqm5u77y+jPdrJHHoE0mtSHQaCpelLZdqnPx/30R3kYIOvZA6zj?= =?us-ascii?Q?a92iTth/2hXxLLcob6I7V3xIa4vpbXE1r9G9zF5/vL9bgmeADOE81wIPxHNc?= =?us-ascii?Q?C2sqw4G0SU7280/6TwLx3i4SJvU8zXKJyhpAq0Gqilhfjkw0iWaoQUbHNtgy?= =?us-ascii?Q?u1j9+qE79Doj6bcL03VRxApC9lRR7R2Amdt+wXwJY04nQvuEodyiOCXlee1d?= =?us-ascii?Q?vM/tubNXfuds0F2i7PJWcha+HfWOtcDQioOuUyI99+fjFQ376xTxgeiV/p6O?= =?us-ascii?Q?Gb20pKOeVomsVZVss2JsWSUw16uSx7UVso0VzRtW6vu3EwohuaAjbHANQv9O?= =?us-ascii?Q?fbNcMsiFztTPlbGquUCvv3vhq3KT5cq/vxjEh4FePr464+t6nnDg5L6cQAD1?= =?us-ascii?Q?XW6/u8lAevs82HvWHbY6E/BBjBozHOrOMbHGSS9xo7rwNf3HSWHtttEa9Vj3?= =?us-ascii?Q?ynL2t+TfZ9coYwaDghBy0A2EqrzYW8BMFR2H3jJkBhJBUKOSFunAEfGvZ5YB?= =?us-ascii?Q?WoJjarrwiK4UHxCkIM16weh9SqY?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0149; 6:JxnfOfO/crA9Srh4z2JQpUZxqyKOLSKD4DVuNAK0ewNjxN0kQKbyF6s9ThtUvu4rdJT5P3CpY2PMNtdkIbns4Tfyb363bCV76sF42ewKl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qYyHSg0UbEwjnugFgcajHmzOLJ2gTpGWWHvrgDfkPHuKzfHBD/VxDwR/mNbQ5AaFXluziL3a/Sjebag==; 20:8H6pumGnlKAer8I6G8VrbILf4IoZVJUm3eYPR/VW7Gx1cEDDwdeGp5/uoRmnFgdWCMnLPMlKHY7nyLBlyV8DCipsr3rzx8wYCNvLgb65vO460Shf0BE/aY5oJvM8lQ/8eHB+Flap5uL/xuMUEkR+JTTvc7WVOtEvRx2Dm0WbyPPbSe+4HAUOHS4+JDikR49Cq74X8e10+q4P1RlV8qVultG/opmNw2At5vkOWS7xtj1fhd/JP1VHwSlCEsdJkH9H X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2017 22:09:42.9268 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0149 Subject: [edk2] [RFC v4 03/13] 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 e0779ddaa426..6494ac5480b3 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -120,7 +120,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 bbe26e2cf452..20eb409a8d01 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -125,7 +125,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 ff795815f65f..2e5eaf631e9f 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -125,7 +125,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