From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on061d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe46::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 92D0D2041D9E0 for ; Wed, 29 Mar 2017 08:46:27 -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=wchS+wqzNpA6d5/V3wCttoabrJxRZFPe46rDXAEapxc=; b=A9YhqWYXLtKvI1ZTWkGCojwjRm5OuWF1rHiGZxGJ6jt/zlDpBIolarB/Qd4EtVUjJyUyD/XDQDdt4B+ZoLaa0AECPIb9LwNZs4yGo3SKAULD/55MoD7iMNnoHmOtmMmhJXUXQoVvHP92gMJPXs3mJcAeLzIBSsObDYOKAJoqo4k= 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 CY4PR12MB1240.namprd12.prod.outlook.com (10.168.167.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Wed, 29 Mar 2017 15:46:25 +0000 From: Leo Duran To: CC: Leo Duran Date: Wed, 29 Mar 2017 10:46:13 -0500 Message-ID: <1490802374-7236-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: BN6PR17CA0043.namprd17.prod.outlook.com (10.175.189.29) To CY4PR12MB1240.namprd12.prod.outlook.com (10.168.167.15) X-MS-Office365-Filtering-Correlation-Id: 5369d036-b0c4-4190-ea95-08d476bac21c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:CY4PR12MB1240; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 3:7KNlrc8QBusHJizXwKmW+cBhn9W9MkY711Nad1qXjJDh4VR7yegpzECwIqJ+55YkcD7ICOdC1TmDbUn3X4GCo76eYF5sQ5kWeb3P/+8OIJYW1p8IAwmHLg1sVqLyVqdXhZxRHakBM/NE/ldIq/UkwrxTSjHjC5AtSpDxhIIVf9Loll1vNiroE89V9M83q+hLgZNQk7O283vMUS7uEK4/CoiusaYkeD1d3AI6mrA8CJqAI2sDAIkHplDW4Gfofx2usXpBY7s9WQSkZ54C78GKGxYloHFuvcFCPhBPFNQIlhwv1cXuXuqQ2dq0XNuF6Ujx7mnQAwL4iyQKAdU20kw8AQZUsGLXCs1I9pIJXLxFZ/g=; 25:btpE6Y1QSm6RYqDqaTe8qFPNF20w3hbuRxtotoPuNeVU+iKH2lNDFXIgCr4E1HosDewHNRu0sAeP7dCdoPcy1PjDhBoHN8wak6+L5iEBImxAaryFprZfJdiBxYB+eLAM26Y97Cg0P/RowHwkBtgWXsNnQ9QsaCWsZx0t8hmzHpG3dn0nxeBhKy47iOHyQkqLH31GukHBYTRxu20HcCu/pRR3PO52IXoalf+jIGwxk9J1AxlgZbv0Op1dJM2Q1KQ5xrp0oL2SaJpo19YWFvgFItrqfLe7+/VRxo8mv2rFnmfMAPRy7/eYFHtXJfiG89gOaVC9aLzV095GLHAz04raQXIoF2xP6OEC9bhvbpW23uB6UZ8T2B9TQyEXWN5bKPLJS4nFO1LpvGkpf1VtU9cXOYfHuluXv3EsXYThpaKTNakxi+QpJFcwrdXEJGE1Hdb5tkkebQY4+xs98Qy9jlgLaw== X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 31:ZGv6/+ruaUdXQf9bbVRJ1/bgpnbsQx0LKK7oPjkMafaVyGs0McX67TYp9dJlen0xZPDi5aABsnuKgX8Rkxl2bQi5oLHB2bxXKr4ZLLFt69FNoeZqeqBCNp986Qk9V/94PQFyGTALRpXdq2/FUcqnAibNp7H+FKscvY8GWmGOzOUlGDaZI0wdBN9L1rLTSV0tKjauhlFPNsFsr0/dxy5c16483/EVLox3wo4KFmdsutzVyt1Z2/QxO8DZZ1CeY2WC; 20:lmJ8qbO601gSUCuphVuhaqz95gHjg4wjjM7df0wbNHA0Gi843exUzeqICTND/ZCkZDI2z+sft7hwTEu5yjpLNPEYbl2DPmt60IFGwWTrKhLg2FwLIPOaOdl0dmMRGoTcsSGCicNVDvciPG10syeEOvmpcF8+WRDZl/Ru2ZfiASSfAapjvNWCWS3LBr7nLM6tqpMIP4+FrsYWn3mOMTMxEQDcdiXBRjHhh/+e5Q7DJh0fvnRqxYDVmObmILybV/v4JXX1UNhOy6kkhloRg1LrbS7dBLtvv184C2sb11eSPAdWF1ytt06xjCr4ZO/nuJIBwcTmlJ3mPgQfSwYK7HEcx6ljZhWa7AmeHG7zuiWs22XbX/yskySuOpjMfAkHS5BM+KhJhivDMhE7qHMwPphj0ZqCvkHBK/nOqEy+CjSlYsCYgr35te0EAyKfbT6cLLysgsrQ5dY6hfmK0zXSV2B6aQczCu7agQLAG58Y1xfsGbYzwMDxCaZRTDW5EGjLaxVE 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)(6055026)(6041248)(20161123564025)(20161123558025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406075)(20161123560025)(20161123562025)(6072148); SRVR:CY4PR12MB1240; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1240; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 4:WYf/RRfp39KHua2kS1S4WTYlcJlaKYEUtQ9YkrhK4NsvXdh/xQ2iw2RW80+lHYHc+wOHuhwokOlRKmk9DzjtG+YbMiXwj5my5bx256/uIR8HzsifkFYwBNL0KDfwIiVC4kD0WnXuGORp6sXp2Qkk+qXU+mC8y4vn1NyJKBA22MjXaqYk/Q2qP7ZpL37QxkA5GsMwnbFa2aDRCqxq5oF8NDljFAiQtYcJ7S/nScZZ+zVSsn2c76qMF8AY7z5sJ/I60kwQQkTmQuYyi9hnsKX5okF40wEu7QUPSYsSxPFAgyMJpTqclBBfkACWzXIwzKlLJ5UMzQflF679hZswd/mZar6YUVJP3qY47SbvF5/LM9WZkXmkXhoKvi82iD7UrEElnKze5pFEm/FPGZ8xUcfKp8oJbPqpzNWOYB0MrBavkoQwIoVrTKYPnUlkvvgJAWFeEsDkKlyIB6OOLu6+WRJfZpPNhkpKc+biRHyGKDQEDAzaR5OrXUGrWjzVVa28pJm263dsn0b1tzHrbZQGq2laj7p7PSVTDMB1jPSeEeDcg+M1ArqDNwDNdQVpcdOee8f/WD1BtaGPuLVHTxDT+RLF2wXw4mpz1xdCv5cH593/u5nP4WdVVmNg9Qd8fK/XLtuq9SWtyhmto0We2WNPSb7KBgDLdY5byT98/KHs4kpP4n/f1B+FG4UHTHP5h8uW8aTra9Q7aTzY70irffRq8HdzfhMeYTQTehaWs3uulf6tkZjbN4CPsSZ0lc5yFhXdbR5xcRj5c26WDMJEieEQ4Ba7TQ== X-Forefront-PRVS: 0261CCEEDF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(39450400003)(39840400002)(39850400002)(39400400002)(39410400002)(39860400002)(6116002)(3846002)(38730400002)(110136004)(4326008)(25786009)(66066001)(7736002)(5660300001)(305945005)(6486002)(5003940100001)(47776003)(189998001)(6666003)(6916009)(53416004)(33646002)(42186005)(50466002)(48376002)(86362001)(36756003)(2906002)(2351001)(50226002)(50986999)(81166006)(8676002)(53936002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1240; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1240; 23:kISDKtn5oD5jZNheZF07BhehsIv5SeWjohmzHivsg?= =?us-ascii?Q?vlua5+XuMIVdtnYT15zERcloaT51CZ7AEfJEPa+BPTkv0HFJ5CvcfV+y1BOq?= =?us-ascii?Q?MMruBMQH4UqPpdgm/R8ft0OWg37lLmMM17/sNvBYIps+69ZAjZ8+yTqvuzcI?= =?us-ascii?Q?8YmjZNAtOu86X+LKYrUUkm0DEIlrIRlv+JFvXzICWkfTWRQYS+TqZptqKsMH?= =?us-ascii?Q?zqmshLGrog8BF+Z06M66rPsK+mWUnE1ZYvuml5bcx2BBBzHbIB3AsIbW/STL?= =?us-ascii?Q?gZ41x0PqF3LhNbpFF502msUZVaC1mUYMKKYFbdZp3n+0nKajzAfzURbrA5XN?= =?us-ascii?Q?2CpWlJ0EdSiXm1k538jjip2Hcst2/8LBAGWt1p02Cfo7cBn951+Nk+E0qJxM?= =?us-ascii?Q?/8vweIXlZ10OYdKDjZGaqudoFsw2RBGuYqStoXqkWg5jVF8OUVVbPjgJYw37?= =?us-ascii?Q?M8fQSfIBxo4SV9+A+vwUf5A1VcmRFgiLguZF4wtXjeEFj7lXoigrshhu/lAO?= =?us-ascii?Q?OJITVUYz/7s8Glu2Sg4FFyGPSOmQYqiASg7H9VrlWj8nv5TaYpwZ3yUnS0Ry?= =?us-ascii?Q?bqoRVY+CO2/i9dG4GSjanqpGw/9ykEd9n3jbp8lsbJ4tq3iBj1AuH4/KHNC2?= =?us-ascii?Q?mVaUKaHvNksaSJhIwR+FDnDKSWC79qUetSoIDWx68nTIvl44hOkrtMHfvQJN?= =?us-ascii?Q?d0CiTnAW11FVdK4Y9igQlP2Q4wNPhoGQzBdlqK0o+s+Ru1Wr0OdF6LA1Tfsg?= =?us-ascii?Q?MDeBC3fmbToaNl2nQ/TMumsZc+lFgvnOXphYG0zTBDyD4tR4vL4taKmmBJla?= =?us-ascii?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agnostics: 1; CY4PR12MB1240; 7:WtHmevGa2E6LG5ns682cpb/56h3yAkxseIFA2TE8yA7w4fvwXPHzl7NoB3EyygLr5LdeDrbgy2/XC7eCkHLE0SwBsK0+wGLT5RU0TbMLh04vbr5jTMN5kywlHqhWQ6dsJtfcRSR6uMqCH/vkjgufMqjc74az/+Y7xMslSV2ijE6rS0WvjYU4g6k8PQ00uudoHrCfSchyUyopZ73raDE6jnbBmquOWxjKQqpfA9j92XWy4B4jYUG8TaqFdWCAWihD47Iwdmqr85sMw0cE995rX1s4OFBN7tW6AOcrcUboQy6QsTvMZwe/rKTcn5eJgH/l/5t669/n1mrMeD6KpkhVgA==; 20:OuIj5IV9ouYX/UCtNMvoI9MkYr3wCq4jO/kSwC4EFUDZzGEuz6b3bYhp0gmSDDT4/Fh0YzrJLv6smazl2LgZIEgeBlOzNIb0fKOBB969vH92+Klgp4uUBxb7970BSCJcDU/4QTOHcqFCyLok1cW5I27LqYeJqh5YnIgk3nNt49gp++OtL0YNlkq+c4IaOaH7DnVBPRn3xIdvVGhoF/HsivwPdedejJLjKZ44ZhPhkRxU2lcWn9BFzgvIw+bcQscR X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2017 15:46:25.5029 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1240 Subject: [PATCH v2] 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, 29 Mar 2017 15:46:28 -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. Leo Duran (1): MdePkg: BaseIoLibIntrinsic (IoLib class) library .../BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf | 63 +++++ .../Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.asm | 297 +++++++++++++++++++++ .../Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm | 293 ++++++++++++++++++++ .../Library/BaseIoLibIntrinsic/X64/IoFifoSev.asm | 282 +++++++++++++++++++ .../Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm | 282 +++++++++++++++++++ 5 files changed, 1217 insertions(+) create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.asm create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/X64/IoFifoSev.asm create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm -- 2.7.4