From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0600.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe46::600]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2EECC21969F8D for ; Mon, 22 May 2017 08:23:38 -0700 (PDT) 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=kvXGpDlNdsbJVmK1jVjKuQdaYmhf2w4+0V4QCYHyquQ=; b=fkfnX3ma8Rp/mj9EXtlNouGJEG4uWGFmkV4et5o4K/3lxuNRY2HVtVmzyuQ4kAOVFzq4wY/jVd+X6LMbEij7TYjPV1Q2/N1IFsuQiEmbGDl3/OSegDdYd+R87WwjAX30Z43dFn4t3UayrtKg3E25+KgTucEvFg8e4I3VTN2m0cA= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=amd.com; Received: from brijesh-build-machine.amd.com (165.204.77.1) by DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Mon, 22 May 2017 15:23:34 +0000 From: Brijesh Singh To: , , CC: , , Brijesh Singh Date: Mon, 22 May 2017 11:23:01 -0400 Message-ID: <1495466592-21641-4-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495466592-21641-1-git-send-email-brijesh.singh@amd.com> References: <1495466592-21641-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR17CA0030.namprd17.prod.outlook.com (2603:10b6:404:123::16) To DM2PR12MB0155.namprd12.prod.outlook.com (2a01:111:e400:50ce::18) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR12MB0155: X-MS-Office365-Filtering-Correlation-Id: be5c040c-4ea6-42c9-5293-08d4a1268409 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DM2PR12MB0155; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 3:mMYBQmPEaZoew19G2dsxcaES2l+kilg/1ffnHsKBs2IVXPMIxTvpn9GntR2kjTbKHSlCGZJSyxBX+SzyP1qUQDSlZQ+lgVKpMzPPEp4Ytrqg0hvAbZwXIIP+2q5xQXnKQdEaJngV+97t82yZEoy+JlN9DR3wDTirNkIB73+hejAU6MkpZWuP5DNtv1SYzXINfkZleOnDjIMF10aHaO1yZYxcdw/lBZ8MHhWz9VmnUBtZlVOJuanadVM3/YMm7CetX26m1TjfB/CqGIfGktkcn41f1zPiZx7wDDLMppxcyDbWp8IJryRgHio7V2swHPRcDScS3nxmQpeBLKbEjabxT9EV0ZSyYvCf40xqfpOWXos=; 25:nyHAdsT8e7XVyqMwXAQAae+bqn+Dj24yX5wXAVkxkIoEB13YHA8fpCnFTwm6Ecr0M3xnwFzzjSBWdQ7mgKSUeHVRPZ7oAxKbJPGAhlKzpNywH2GII13xeNcjLwcP9pAVEt60H2v9pDIv1AeXbPzasDXo0aAtSA46rIs30J6Wzpf/g8ge9WyYCDdpPJVmr6PToyQ4mtxgjD35V/LyT93Ep7Nw2GgXdKKrkPqo+bSeY0pz9elsHqadXe7B6CnRuFz15h34mLkOn8uVhkukllGL0o+qao47uLIeA/cOHXbrKAJSJVtRTZ5Hx6lVHSpDCQ2n9kC1KhEbcdF9G7qvemJMXGqyBhSBCDoB9bBQgX8UktosziQuT6y/tVUpVN3iqDQuvPej7kNhZFSgKUReC9Lgdwz0m2pc8zpp3abQVGjbwLUE7tnqRKKv3QvzLBjMbmGEZIdO0flWu1CHBXwxvDaN27OCpIvQwJF0IYkVFpiRN90= X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 31:p3SKTNZxdgG1Kdi5BdhTvUhp8JFPICcHbGxyL/j5neA3GwLnoQX57DWWX4hXxCXO3tGqEmzOGIpzh5O7PszRDBuSjEAkhLw55Q44oXBQceM3a9dixOWpyVmadbOEknQ4Fg/FosEC3FsC0eKkpPnXPwv+Cjs1QimYOol1+Jqug73gln34uNrElZ1W4q+rQdj9ca7y8mS2WBf66Hdiz+D14rwPLSgSfyWPFAjvpxCDpf8=; 20:DRe0yCxIqOb2eIHqpeukH1idA7PoTZm84d3cBRMSKTD/pAPw1pHEod7j4qmP/PaWmAML9WJzV46YDt7BPCJQzWaEu89u3oQbmkpWKYvmCRHnfcxrm5zyDHks0fSBOfTJvExRcWHzJn+0d2g6mmsZnbmUF59E+RG7kx7RDVupmYyROH2I14VbkCX06voeT35/DSUw51oXCpLkyHkbE5XFzdZrP8WYQGM7NyZqfZuHOwGRP+lO0oEUcpJyU0FrzqNOtpMu8Xk5s6qliFFrpM2az7V8TR0ziUjhQgPVmyhyC+yr6+K21TuPOxeFT0CkHns9iBgQ7PNj3fQT7Gj7F5GHlxGhxetYhlfBEcKzGW9Rx9UlpGnjPygxZrf3UhQzxTKE7pIMgqWUCh2JMo0CMxQjAU1rkpD3fzUiLSp+BKc9WYtKS7/UoNXujYG8R7aKlvuMxJkde5bjDf1jYfetwCOAIOs4DgbHg1gPM/XKHKQTQE6ULTUqGw5kAbHQrfBm1mYe 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)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148); SRVR:DM2PR12MB0155; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0155; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0155; 4:/bgn718751X0tzlBSMB3YP6H2AO79B6OlqkjpLsY6rzouZ3Qtq9Wpe4s04GGNx1vxnBWuQ8mEdXilG1p4qhcy5ZGNip/k63D0AHHCAk2196P8MT+ljzinACKQaIepbwm+MGXvMTZM+sQVnq8Zw40TMDBlmWpgWOmMQsk+y0fFace+G/S6MR7uR+HpeoEy+ss2IOJaVt73f+ZgU6sRu7uWVEMxtKwIVLqnbBfSjP1zXbGVp440GhgD085obyQMKZaLMdwvVqlfqhTBm/hTS8+RhQkEYviAF8CnfxodsAS8h6nQtH7PXE3eTBJqxSl7mndMRRXnwHx7PnMUndMKR+rNVAALbr5nZPL0bWfdTHTSnQFaSG0KmtxaU0ibj/D0SCB92pSCtWOYPjZwI6Xc9gOPnwS5lIpCsEFbWnlfY5iSA7ctmSLAHohQGUfPIPPp0CVXKja4LiyMZeKbPX13otURvhDYmMHATH8Olq+03idRGxmUNXX93WKVbz3Uo/G6/8Br3rKpx6y0jhqb1D8y/TyAjW/KGfIWHOl2pfMPimhVeC24xTRuNPKvE43ifZS31K6U0nk1lsM1rUQdj6XnKUosF6zTfrKdYA6yIqDZ2GPikqRpK0Ju+sdrEPf5o1lbUasdPpVrrxFwwyjcI+DTGn9m9IkSryt/8NEyKIqayS+aa9ThKrObvDiJZ4WkoCVLpa+pXi+72ozTWKusdboLW9lwT09c/1euIfMQEwnwVIgdm3svTKvu3VMU+QScdhDg2bXz87FmLJ0huxe4qQ3OT/6MkR7jLF+4yYfr38dFKvFdr0AjyuHh/JdcGm+8dcZWjIEZhwnpQ0NdZJoqDLrzYF9a8qOZFp1E8+tnOeA73R9+niHmj1vjhEEEdX0/WH3H2Ro X-Forefront-PRVS: 03152A99FF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(979002)(6029001)(6009001)(39840400002)(39860400002)(39850400002)(39450400003)(39410400002)(39400400002)(189002)(199003)(6486002)(5003940100001)(54906002)(6666003)(2950100002)(36756003)(53416004)(42186005)(86362001)(47776003)(2201001)(15650500001)(66066001)(2906002)(5660300001)(305945005)(7736002)(50226002)(38730400002)(3846002)(6116002)(189998001)(8676002)(76176999)(81166006)(53936002)(50986999)(33646002)(4326008)(478600001)(48376002)(50466002)(25786009)(19627235001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0155; H:brijesh-build-machine.amd.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0155; 23:Fdqs75A2VMoLXmK8QNMAUwYXyDqulJi2JA9lhoxvl?= =?us-ascii?Q?b5PN053LqD/o4i2eLZx9YRv24b043CUUeBOaL7MKF7hRNc9jVMrywTAoMtNh?= =?us-ascii?Q?JGj0KIEk+PEnmwmszb+2wpARzYxrhZj5X+O5Gq8N+6SRNAMs8lr+TMZZdmw0?= =?us-ascii?Q?uVw4MaHlbHD3tQN308SA+dEvQlW76kLuxDSnbU7sBGyLjz6KXwwCo5+Qxuy5?= =?us-ascii?Q?3Y/CYNGczxCImNTbMWtKWR3EYod/EVOEYfDVrh2ywd3Pnxj8Cjx9HRwRbpSM?= =?us-ascii?Q?k8fkUrqFStNFk3A7p/yw8koo3MZK+t+9CfsURWcSgNWRLGyDEHNkCo612S8i?= =?us-ascii?Q?Ecm7ZTkN5FITNlfhGFRPvUtwj2hCzdbvoOEIw3ZkstUE1dC6RJgcTBos5Y97?= =?us-ascii?Q?KR+75zJ2P7en2V8ilSBeOVpyUJmw4Tca21lfiH8mHGqrvUbdYurieVZlbesX?= =?us-ascii?Q?qnBs0YL0h6yNiGp1kwxmcdcgqMXv1JP0vc+LIEt9ySTTGddTWHMdJ861QtCU?= =?us-ascii?Q?2H5rJ9INMzgb/qfcF9bNx9OLICzXgVbMfzikO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D2A==; 20:ovDA+TqRkvhOWvw3228tLpxYA1MqtkZnPaT+8fuetgW4ABtLONmz6DSnOPCCId5TDkSaa6O24X8druLdxzvNqBTwFZmy6zAoD63zXHQ9rBZCsJN5wfpdPo/X0r7sS67My4dnLdwF241CWPo9YtH8UzHlt6VbUvs9gSCAlI4Ep1PU1LTqX+wII+JJkYT5nJFSOkF4ukqdkvierrtKv3hrlB2fjK0uNwFYhN7r2tudB84518x/PCwPwgZBxKFk8Yzm X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2017 15:23:34.9146 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0155 Subject: [PATCH v5 03/14] 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: , X-List-Received-Date: Mon, 22 May 2017 15:23:38 -0000 Content-Type: text/plain 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 bd115c9ced93..f3889c29f426 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.inf - IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index 9727db842922..2aaa21f79e49 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.inf - IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 61aaed761657..b1e35942ba03 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.inf - IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf -- 2.7.4