From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0614.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe46::614]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5D39D21DFA8F2 for ; Thu, 6 Apr 2017 07:48: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=I46lVgeAsjyq1xlVhuP7n9Oxtoxl2MX9tKxV2DnwiYI=; b=VG0obIFr+bGKMmNVHiiWu+/biBjfn6nd5LxidWcNPo+Z/o2AYdh9bhRw8wNrB1hjZlZHZq/c0iLBNUdlXxxrDyXmNvYff+bGhQe6WfSsl9YHAVOIqfWpv8aVBX3riwwKCGCx9puJgwDmgRwteG9kewnPWGfAlTVZflAAJRk96xA= 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; Thu, 6 Apr 2017 14:48:11 +0000 From: Leo Duran To: CC: Leo Duran Date: Thu, 6 Apr 2017 09:48:00 -0500 Message-ID: <1491490081-4698-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: SN1PR19CA0021.namprd19.prod.outlook.com (10.163.220.31) To MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) X-MS-Office365-Filtering-Correlation-Id: 620f2ab8-9dae-4dca-93fc-08d47cfbf27d 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:+HhyFNl6jX804quKGOuuUybqnuSRfAtiDszuOn2wSXaRYdsLHJJu+TKYxq3AQhhT9FfV9ZP/cwFQzI2wlG2k4i4TOFbRxUdc/G7TcohqaTaHzHZ/BUlKtxFA16FMQwBdCofXUsfHAPB6NMx+p3gtuvalcLyBqtUrScQAz2RSuwoqpWkE5BQQBuZn3EgYP2LUtup/YZM4OqR8KIwJG6LXC4zzF4EwXDCNSoryySnk2qyhUZ8rz+CKSdyZvzrtTga7GV7Ku2guiTL2yxWig9ICU4ubg5pq8IwEeFdON2t5eDTrqdqd1PgHtU5BU5IJZQQ4jawNxL0fUsQZGNKQ2Mn2HUYcM2FUeCvCB8hv0b29+7w=; 25:Ru1oSfw65DAuyge14zXM4+L7iqWZJz5Mu+nggoQfHWc8CKnmgU9rSK0+ZVLZZ9uL0RDyz1YwhWCbL73jlboke53NYHefK1KzkYgdSytvIUizWTPW6fWwzC2pXCRg8tiyeSFnmR/aAHZpr44tbUmqj6vb/NjhVR/6qePWC4l1dCw0l8nEurCEuKdSXhMJ12GFRZh388zCSpa4VVz8oaGS79sX9de5Pa6B7EHgBRnjManONwjyalSlyLDsobEVlyCY/dvyzKHfttuHHYWccfTpt6bc5IhNACrJ5VTfb1kdEEzhJF84BA0r6cztOLCvm2Jt8YacJjJuaR1YLGKk2ZfKOZnsNUDV51jo+2NSVQUmZN6HyQ2KqOdUvCcBx5lRHuNSQN/9rk4Soglf10hUnL7Qp5KqdNnGJHDmLEjzlbvtmBieWEqSDwgrqOgFlaRLbZFwToPm51n5uXRxdU75KdSFcQ== X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 31:LcQKu0f0wDZrKWDrU1XG0o1wm2EZ5JCy6blzJdN5EE97dUWY2mrTZn1UJtPBN4Ywzhza243szDs4yeuDFtJIsXdsCJB/SAc68FNihVUo/MSSr5gGC1YcWx4tko+rMfKX58uEu92RoiUiK1LgJ31XiYWoSxVJwnb+NZ1IQP86MK4XdnYrLhwkkTfTuRvsVBDlXorWaHAhMDgAcOeWvKitPmstB0HB9eP9Rq8DLVKaUH6DRjmU0osf5Ou6bvJ/mj1V; 20:hIbXthKomKkveTzaHSHSHnwxVKQHpQ7aGWyG3U2yFrnX2R69y2gzaB0SJ4uhfK2HiTVjnqJgPNYElYga1uciu7yuHs2K/N6yk3drYwo8oTO75sn3l1q+Im5Vx0kjICevR+v2U9c5BWeEgkjIEQ5NOfjFs7ZGx9sh1JYrNgyflZxm2d5yxmaIrOyWwSN8FRD2G/6gBflk5/dH73aVWsmJ/nhoYeXmeNJ5snh95/Av5NjKaPuMoAX/AyLqe62644ifvVSA1vzCP6V7OFwbO8H1qlmp+rxbBLYTa1q75RzZmbPIk0h4haVNYyOobkNC8TvcbF6Tz72Qrps5++aJkxJD3ZRJ/OsG0LhrnnQfp4pmWr/vQhOEAHXpz8YOYJsHxUufnE2OgXAjCDf4ftOSuIeLf72VjDGUD7C4c/vWQ0EdUlSwyg/U935GAkca8C+LuzjgG5ZKA0CTOhXJQfhi6mwNPXO1uAlH0e+xYov2ysI7+HffPR2dtDSPFbKnQcFqDIcY 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)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:MWHPR12MB1246; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1246; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 4:z9s4oxTkib4kmSpnC8SLDhik+aw4qDeBowHSjp5DbaUCy1FQhlyYSobGWX3p6UX6LSRcd7zlhQq/W676QR1W02eacskv60Azi+7lJ6wZMyxTwJaRmsEQrJDPhXvfe7GLyqX+zzPamDqBJbkxzM0Kn5ZwURk82SJRSFtkfSP4S9NNH6q4Vs2oQYc82I6FBLiGayn6osxykW2KGj2H8wnJYl3rqu+FM49F2LnIMFMcoexRGXrNV6Liy4KXiHhd/qxNHl/NFm2UHwpXmJGo5KRewmB+oDNLeqbeWGNvyojdEEqf3DjEasbatZJxgxGxQ0hXDN/7pHd6IHjHmehRTmhpHkUfS2OyjSRr2yl0BK14AxjcKRtT0XyZFl0skHkKwS67G3w21Y2pXmnhy2eVaupbUShOYJgdNYm9grgswspPBdhfkwB1SWind1X02CyoaV15Zlitjij7Y2QbutZCZ1pNRYhkWhl8p96GotN4VnJmpem3W3+NewQpIOLaRRvm9AUybypMhF/Hsjgy+y3v0+OKDk3ewb8fqaJGR/ZweKbFIU26nbm/KxCGB8QN/jbAORcl1DTXbaftlNTSCbgVi9b5EpRb2cfS1Dq5qGS7QHoS8uXYHecpqnP06pLokgeUfHimrr9F3tMkoVguQAQIazJRcnBDWmdTrIZfqua7gDEQbrYVjA13hy5BaouDdL1HIiQmj+kT+g0Qs25vKJJRyi1fdXQi7tFVD9YgffiMMyFbYyc= X-Forefront-PRVS: 02698DF457 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6029001)(39450400003)(39410400002)(39840400002)(39400400002)(39850400002)(53416004)(42186005)(7736002)(36756003)(48376002)(38730400002)(8676002)(81166006)(6486002)(50466002)(110136004)(50226002)(4326008)(53936002)(25786009)(86362001)(66066001)(47776003)(33646002)(6116002)(3846002)(2906002)(5660300001)(5003940100001)(2351001)(189998001)(6916009)(50986999)(6666003)(305945005)(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; MWHPR12MB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dEJ74SQ?= =?us-ascii?Q?FVau4O0WFUWDuk0AExKKCJjhGK03H+SiTTA1NZgZhkbv4a3NFSUl5Kpjwx3d?= =?us-ascii?Q?PY5DNIy4SFkSWk02ZDL3ros/cFtiaSaU10nYAGe1sV/VGklpe2ZAYvU27yf9?= =?us-ascii?Q?90kRQJFA4sBrtzbvgNFGAvt?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 6:qW0rZvvo1JkWKGtUpuzK9C+iEUbOajpcqhuAQ4iH4m8nAcIKrqTlKcO/ZM8SOvERUj8r1+yBfLIo8l64Ku5M1Unf/gd3viR2Av8W+lnjkO8pdMMwO/HJZnrS+C3Gda06WlW4uilgrRgg7j71hLOa27IVzKiRawLvwvuqHBRM67PFWst94rUS+JTOw2SsHKdabQqYHe63uv1XjxivZ+1/rNgaf6Qng0j1we00q0HegZKrZIA2fuf3B0d87LML0/AiWFQSd8rtuvHlGmhEBnlndAbs/bGcDOWA1OJPzAcr3rdBK5OC8zmbZXu33X60FT1+NgVYQxGaHVepLyHuF9YdCQy61jouMyhhT7U2OYwDcZkLWW5jA51PQd6tS02RcXMRXA65x/65+iiKdF7yNXHzBMdS8gnd260dTiBB7B2tI5Y=; 5:8xngoRcEgYsBF+MuD6tiz10EILV6/FWts9dlfbPLCu9hMIGwSn1xIkh8h+2Y82mvtnGxwJqFM7/m3guIKF5cBy95kVEIAwVuKSlEcuZ4fS0xLlbD8heb3WqF6TCv8pYq8Yqc3oMKIK04fYm+uyRCoQ==; 24:39YeSJzYUU25esXKlhe2Apr/7EHGg78ahAHz0y5NPfOcCyBAz4gfYmcqppBJE3SiEdTMfLImCYabRd8KhXBiQVp++S8G1VIHsgx5onecL/U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 7:jZp+c0ILP+CUIhxYV4pwnjIzpJmLRJaDQ903Fd6uGfUE2iUH42TwfV7nFSgNvd8rpSUc/jemuXME+L+wdcS7AbBVgFkKgn4VvimvO30o/w3rGSvPnAcXP81Vfe66Z+vIUIu0ujZtBL6RETUoU3TMt7uGq8SWkeDQVSMxB2Tj2OAHEekthYJHugUiqTx3yOzeoHqFwYM5OiYyD+a35/yIGO99/+K3MDkkZH1caICmTrgAUYXeo3Kee4T9CLlW+M7bCwr5AuKKNhIiBI/PCruz3Fo+BaZlTtqrjOR4r2iJSEUZJ/7FNoLU9daaUds2G9x4W2TwcBeCxxIUeG8FP45ASQ==; 20:bif6KWgghqD4P7Dr+c9jM9UfSnkbwYm4GidZSme/7pfmIp8s2C5aGKClo9shZta+Tm6ZQsQW+1XhtjgFMUtnl+uL4jx7t/0R0f+yn4SirFwpWlM+c+U5FK9kXMxjRt8svZV4IXDVsJe/FxhKp+79HYmviDiSQcMTl4Hk0tSPitsP7X3UULURVrE32csVVFT0q+Hs6CeYQGuNpdLzCg7rT/9htdMT0J8UYHx903Me5NBLQ/h05Ia5cDp00GeUDO/P X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 14:48:11.0632 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1246 Subject: [PATCH v7] 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: Thu, 06 Apr 2017 14:48:13 -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 v6: - Add .INF entry into MdePkg.dsc NOTE: Please pardon the churn... Just had too many balls in the air. (hopefuly this is it, promise!) Leo Duran (1): MdePkg: BaseIoLibIntrinsic (IoLib class) library .../BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf | 59 +++++ .../Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm | 293 +++++++++++++++++++++ .../Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm | 282 ++++++++++++++++++++ MdePkg/MdePkg.dsc | 1 + 4 files changed, 635 insertions(+) create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm -- 2.7.4