From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0607.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4a::607]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E18FA21A0480E for ; Wed, 5 Apr 2017 06:20:13 -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=J5sUQOglDO7Ixufxng04kDnL/Nl1PE0j8NsVn556owQ=; b=UiNWC8LqGmt6dAgTFVvxUspRGLMx4s79Nd4Unr27iPJKqpzXN9Um/U3v1MgKc0NwVVVie172cfsmreX2uWuqsn18h+zC3jdkpPKVAIC7EWch+6QW6m6MT0CgLpregJ6BCtSxPZWyq5ZqUHiBfvT+1cWH5ARtb2mEcfRnWXxjecA= Authentication-Results: ml01.01.org; dkim=none (message not signed) header.d=none;ml01.01.org; dmarc=none action=none header.from=amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Wed, 5 Apr 2017 13:20:11 +0000 From: Leo Duran To: CC: Leo Duran Date: Wed, 5 Apr 2017 08:19:56 -0500 Message-ID: <1491398397-21176-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR19CA0047.namprd19.prod.outlook.com (10.172.173.161) To MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) X-MS-Office365-Filtering-Correlation-Id: 9300d88f-4b1b-463c-1e01-08d47c267d58 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:MWHPR12MB1246; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 3:T/vH4Tnh5CZOQ7AZ+GedbUVNzvhlY3mCnkVV27Kccu2Zzlt9SdC7RZB7EX3etoEd6SKGQ/FmaXmyYlLNw9QCqKe49rEu+IaDzE9ekIFLYeejkPk/YcdofG0Vrszl3rMMUpdb83NSw8BfoQ+AZVv1NWYkalzjdcjdzYEff3LqcOw6LF3fF26PzxXqDCYqUk5JWDxbu88fH3ohiLBc6eEKHkfyeDju8EHpjCAhJFoVAb8UtBVxZXR+VzimHttpZTw4S23hXBcmQg0H+YI31y88rPJVO1NN7uP2Xofq5Azb4B//1cH2Q2kbWylSMVFspa+2m/x1p4dgods+W19Li3Qaqe+1Cl8ROaItO+wMgHwVAuw=; 25:KXXvsGjXB867wMnRf8DiS5Ag6A169Ag/LuWlAFZEYkAHUODW5canpiab8HgYs1oNrzCB0ur5Ss6qjRuvM2mUJi/9DTdDJmiLmF9XRlK/nBsbp1IT85/Gji0HxPwnSt/37JD3yZOCHtZdz5178j/Me/p0NDOpmOr82GDObG0KsTcxb54zwa7TEie8yyUy5pbZ9UEWX5CzYF1fuC98llT3fXazDiDqvMZ1C9YXgx9BmNzXZsqeluyz7xu8+RoCjbWKZN3DSJxov0DaApQVGv7feKvynVUcZ+c1Xuz1qP238rDkPf0gn3o8hO/t/Jt3fKijrQqJRasno15s4K7NTq3unvJjkx3mZkH/gMUp7sH4rCr0araduIkKWMaRo6Fxvs+H2Y2mvUqxyAZjaMAtmnIvgsgJY1/wGaLpwogpIDJQ8Nlghsw6QiCw1SrQEteffV0l/CzczEgsgv12bp1Ae/anmA== X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 31:8oCsDcnHSwGv/SIk4qxCAPWcfLUjsc9x2dyLJAZvX9PosxPaSL6aY0VezpVIkQSAiJ8mJUm/M17Wys1AQ6v3VttDodpyPfT1Q3ibhVwhzjYm+ymHjyHojfb9e1Volsi0IDMzghPEpWrASeGy6T+5qN5zdoCFfCWg57T2OObRlm7a234jRV4VkK6bQ8amssCQPn4GvYA+oqL/dQ+gNBMesYR3FjT/j4N1zNAG5R7GZ3Q=; 20:mWCYo6yBLfATrRfd5x4ky49RUPmPcQx2Vjk5S79MOLDPOMLe37bw/mHOxeRw8zHFVm/VIm9j21Zj0WnGms0gqdAxRZ7LTcFxEHEcPig/AE4JsNY3KuF9ALOrO01bxEvnowlh8pxtuYW2g7/16NH69uW2I0gHh+D6TpAIJqvj275zW0E9aC3AIuvJ+ij26vVTtJliDym+7jDNkeXK+n2Fc5fCcBHdjmX3pJvXR3cd5syxsz4FtRHd4gyiQITkbIfZ2aHhkPAnWNiAchhABef+ojfmUeh0oPdgTeScQlEQOxWqHpLPipebqwSiBdWNuQ18aOXKMy8k4tguO7yZ9gY4cvt3azRam4lu3k6khlqbpSS5D1h1RkBLKLn+O43loLfmA3mbRbM6Vmm7h1m8EqsukWbbT/V7db7DkYvFgXvUKLVxV4tKBY8AasNFHAjqNKh48J/1NKBIZRBeWzI8L0ceiyPQ4KzEYtzEHEMkjFxETZzteS6jAqFwaXTyAssCNvbR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:MWHPR12MB1246; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1246; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 4:DI8wJxfo8sbJM6E8C6AtPXNwnmgqfnyfNKfLPQE7HwNQpCG1+DuXClM1Bd8wDWtPFnKbJAO48yuWwCqBVnEdWTl+23SGKFYdrdMh5diD6gu7dNN1vdQ5is5kZDAmd72OQWavOLnn96cEZy2xVXE/PQ8nCERNlCBFxJpFpEy8eE6OymgetUEuri8KndPJDZX56RfSNpCKLp0j9huhH+KKTPEVxePfCL2z4fX6twOo7Gv6MKxUQWdd5eKI6jEjigm0IFQbsW5fDPsldkq2rSDnFF75RtCF/IRBRECRSZnIiwKT4ftgsvgvq0npFh0F+ZEpMfeqfXv+7xiU/Xnsp+JDk9ptK/pRyD2klhmCQhLv6P/JG7yT86pCUH/Bk0F9QEUPwCF/bhBb572cGyK5Yb0RJeFQAOe9Vnl0TgyPfPfciY1hNFcaV+FJL/xADV7VS/eYpoTlbzQ3Sx+5yb0c7s2NMJwrOmbcY4cPDQZHwyyKbl6+v8/1sd2aayFibDMp0lGIWtyvSsHXh3l90fvPRs6JqEW8YsYtcYCLnznJPBhAA6dxHFh1fCGJczZ5Web6Zp/h/Rd1u57nyI3bFlE1sY478XYgnZGrK7VmK8B6jWKc13Sng2zXS15R9H1rkwQQvav8Wl++XSgVizuHU2bOqme6Ns+caeyDVuo3lhZ8bj49wxTQBg5ujPiM8582vcLglbRhvNG0NTvmepdutuCGDIh6lMCgIO/xIK5IhE3AjOzCMgU= X-Forefront-PRVS: 0268246AE7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(39410400002)(39450400003)(39840400002)(39850400002)(39860400002)(39400400002)(53416004)(7736002)(42186005)(36756003)(38730400002)(8676002)(110136004)(81166006)(48376002)(6486002)(50466002)(4326008)(53936002)(50226002)(25786009)(86362001)(33646002)(47776003)(66066001)(2351001)(3846002)(6116002)(5003940100001)(6916009)(305945005)(189998001)(50986999)(6666003)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1246; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1246; 23:yl8yhZho2eFkvqAFga3ypa2H9YD6j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Wl9ooTFSqB2AZ8SEzYf5sMkgnbtUPw9stNSLKLz6dU?= =?us-ascii?Q?1HswPq59j6jkpw/9v9LxQ+EaKMaPboD5sNrd/xzWhCxYXS8YzpinC3nj8W0c?= =?us-ascii?Q?Gk=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 6:O1l4EsdJUKIHdq+/CZj4Vbq2FstlCKBnUMEnqE9OVI1xsYphIref4UhkaFtP8pxv9HwyDC72cZdyo1vXM3aybb5y2BBw0QCRyFdzVDmK2Npnw7gKg5JrjCrGv0kHBXogi+O8srELjXo8oFxbHsncScYtuEDIX+GPZFopnHC2/+pb54jUfqV8MvJb89WVWnSUFpN4vLmyjVXJ2f94aIgxswkGVd1dT6T8lhcjuOUk2yTIqgNx2c1oWPhQ0bK44Os2n8AcIw9ayT/H7WvGnxNB0GDXTqdqAwPl4W+zj2bU4Db1hl+d23UbRaYUu8kifCKy7ep8cdbupK5gZFaxtahQ70scm+2LOpicksFGU0INFi6xmOiV9o6SVhl3M4qW4DXj8ptcU8Sc82GngxJweM5tdBoNFWYn9tUR4726Xuc42+s=; 5:/U7kDEtPdoc2AKDy2lom5y/WJ4E968iy6wVq/9jhhVE5OE8Doi6wPeEhIu7JlrKogZDPSFKJNNh+v/0SAucFaUZKiOCAsBTDY/42FPbVKk1RQfxfM15jUs268S8ZIe8kpV/qAr4gJ2cRy9jutJsMyw==; 24:r8o7m2/KichmY0l1MS9r/m2CAY2w90ctjd8HTdZIL01jaICIHfEDitrEG1YofG/L5hrv+shbHhQiow+trX198TxdTQiKx6Jl+RZ55eXneXw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 7:Rw7jgFz/INxowa+ykjHH+S4zbHTO0+34fwaoEafUz3ZM3upBW/QNO70pudFoZ5Xqmpjw3j6QPlUZklYAT8l+yIiqUiESvtfZZmtWLSZb96sRKp180O8iY5Yq8tp5zi3Xj1jfki/AymbyjNzl9xaVVDuva+u5B2K+1D1VwR5ljcRsilD6S9Pvq3vEEtg+KNfUwFfAt1TdgOP97/MgzPOQB3iwWhMdtjccy6PAxNAfAPB9zzHfQlPQzfG59+4WyYYOTPZLIzJ/8hc2bJ4osVX7z60cLrNQ8jqMrvyvjKGX+vrfQn+maHqIhx+zTsNidavtwgjZsi0F2KB+Jf8BNoLqyA==; 20:rtQwV4b72XGdCmd+HAfadJz6VBuh+QlakZj1jLmqIxJ4G3BBUhD9MECZ+3WbCdgAQWu+M9HtHPTYZIzjSgF034yjffuq/2n4eQ1mIc+Rs+TkYhnk4KOgdtDHsYYTZ7ITZx5Vr14Y7NiG8BLoa3Ld6lL7CGFJu8Odw/hRJvek3R3duIyTWiY90wch0VXVyDVlwM5yjpRdcNMqySSB5pbHDAYcayuxblKlfj90iISRIu7giWyF9Qe3yGoiNGdPamWG X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2017 13:20:11.7569 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1246 Subject: [PATCH v5] MdePkg: BaseIoLibIntrinsic (IoLib class) library 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: Wed, 05 Apr 2017 13:20:14 -0000 Content-Type: text/plain This patch adds an SEV-specific .INF and corresponding assembly files, to unroll REP INSx/OUTSx on IoRead/WriteFifo#() routines when the SEV feature is enabled under a hypervisor environment. The new .INF only supports the IA32 and X64 architectures. This patch follows the series "[PATCH v3 00/10] IoLib class library", which has already being pushed upstream. Changes since v4: - Clean up comments in .INF file (removed reference to IPF and EBC) Leo Duran (1): MdePkg: BaseIoLibIntrinsic (IoLib class) library .../Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm | 293 +++++++++++++++++++++ .../Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm | 282 ++++++++++++++++++++ MdePkg/MdePkg.dsc | 2 + 3 files changed, 577 insertions(+) create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm -- 2.7.4