From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on062d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::62d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7CFDC2041FBC3 for ; Thu, 6 Apr 2017 07:22:34 -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=vFGMzNMIdLxeMjTidT7D5G7ttMDIQU15Sleae7fUlZw=; b=eh8qrQ0krB/1ezdtQufkbd15XpJAsnxI5/uW+bNBdpIVAULIQuTWwugULDJNBTclf16wf0+N2nIa9cSViiNqR75yv0zQRzLtVWEc34G1q8oD68XyO9CDincCh5rfwZfmqcjNlcBhRvSSpKlvcmX3JKH58ii35LX2Em+f4Y02HTo= 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 DM5PR12MB1244.namprd12.prod.outlook.com (10.168.237.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Thu, 6 Apr 2017 14:22:31 +0000 From: Leo Duran To: CC: Leo Duran Date: Thu, 6 Apr 2017 09:22:21 -0500 Message-ID: <1491488542-3811-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: MWHPR07CA0014.namprd07.prod.outlook.com (10.172.94.24) To DM5PR12MB1244.namprd12.prod.outlook.com (10.168.237.135) X-MS-Office365-Filtering-Correlation-Id: e39434ef-1ceb-4905-c624-08d47cf85cba X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DM5PR12MB1244; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1244; 3:hFt6gW6d1gF/lKkA8eMpBt2DYXUhoUhD0qZeKZnfw+2kX2cUN/jrW252xNIY2fo1nCmkkGQyEHoHFneYqHAg1LNJeC/fws7mJjmab9vxwuRdFf04txDo9VafDQx9BrIxytqU6Y2Y5Y8+1Lw32I9Mn8ZJqvx8jnXJAghllIzbGQ77M7akAr6v3KS1Ym7N5zo1gzE/untsN0Ed8qQZvqTTPyk6mnDCpxLojA2RJ6K7gi/l1Kxv/BSTS1jdVqmkJ9Dho7Kk33PIiDe44AJvsr9Y42p2au0isHbrniefc5nJ0wE+DIlYJmFF0w8SQIDQ1GEprAu+gQKNGx4fJ6BU0qEi5GMHqIBL6tWZlN8k5jT8y0U=; 25:+g0jnVbPJLGO726wLsO5MK7tM3domPIpmEThIh51moL/JztKfz3/1x51RjpB2U6oNcgg8WyezNwYy27qCcs5OrSrIWCZBHyIZgxBSk1coWcGdiEfbz7xn3q/sjoFyNh2uDZNMH/afBOJ7MQM2fb9tkJ95XIuwIgs44CjjiaM5ZpntR4REf1EUYYJfPS03v5tB7qg1IZs0gLF6PgMDYg/ZswAZPULfuD51YNrgOeOe4zdba/USqMPb/fy0THSpalL4Go59YMcvuFURvR93lg6krc/MwVxHHSGCfMSQG65oaPl4gM6MF8nJtcbblx3WM4fCCGlnQMQg7y9jtfsmjKNvH2kyQxPfsWOamJKGRztsES+UpSY+fC2YMqUkO74nplVdCqjegFFm8iSlmRQWnK19V+KRMeRqdEeA5LbMWWSz9Cdu4GC7Ihh/X+tYJEOt4je7wZ+pNrObY691JsTwwWv/A== X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1244; 31:OeuEJGeSdfX/6katzxqzwAdT4xQF5V/05iyL2anG4+xCRUJtAH9zew0sKxZl3Pj+Rx15iyxxMneanAAW3t3ZuwQl1iSEUx4hSWHD7AwJ7yMgpWE6AZZY4FJscxDwF8pxPXKlLfGDtdjJ1ExEni2J8SD0Q7ndxKyceqn1+1N1PkveMJoanUMvy8nr8Gc8s7ctFMrglEG1QZf+js3YzuVzsDH8UYhYSZoITCS0CiIhhXI=; 20:6uSUX18eFN2ztdDjUWyB7SrDUexnPKbinlhtUzwxpyRmQa/c0cnID43HnGB0YUGiC1P9SAQFt4AyGZU2tJ8AwaaShzqesGIMuyBjBXdLLxaSlVjqfev5ic+7tZg83plbyd6hxtW+CABZJLy7Zm+j9uOV54i1cf9ozQVv4VTsgf1IpJgdaDM94V2ekzjdrYAiVQZrxXxL8F7FPr6INSMSZKwFmPZifF1Bh2MtxaIVF7huaYZFBfU+tjzUt/Bc+rsaHqrzg+5p8OYEaVlrnKFflwunXOzB/GgnJcZ+by+hTjurweJYc/hdaW8XbwnHFFVu3iE82u1JArzJ+5iq76Xb5pVqBi2h8YfcXfUDyYsp7qow9NXmM8j2uMJdJ8kfFoYO5kpl8ZEi80uGxcE2FRKezb4qLH9rXDq70n0cLGl5C0ChTo1TdZHuT0TNvuIjKIg7Ur84SSsx2Ipbbl54E78DN6JyTe5J+u593vA+qKr7A8R4W/2zm6nuNx1GIew9gNal 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)(93006095)(93001095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:DM5PR12MB1244; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1244; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1244; 4:tgQ64oaiSBHl9MC8nR+H9eSlqxX4mfAhhWgqK/tSRpRXKE2SvTp1uI2+3AnIoE+UUU+u+MtQWruXY8wugOqEnVCy+YtO2G7Lx5brYZD8oFPDUTVUDY5U4x8pmq6PR0QhVX1lPJvB7Ic35rpVO8R3QquY1albCn/qm/ZY50sHp3IF5rR4OZYU+llpSqPrMu1sIw+9c994xYSUCED/wLRYHYk75ndK32srzVP+vuo3mgmNMg9WreXhJW7zHfeRx6bXZOaBDjsKk125V2NJs14UnH3lWcDmBDGjTaqC+sGLQGdOX6B3iO8S9PC32OKucjCBHcBdlz3jvb5AKn2oZJtYy+BsbqRu+si033Bjk3SVcSpGKtWM3uI81q6ZvtbcjKE9Otgzrd+ywZMPa1+U3ft+xSxHLiljvE6J3dG6LzhdYqgEhyzmpLEF2Sbf9P6t/4ZysjgCqzfzx5iz8EIXzFPVMrMeM0gPPM4ZUMXW7gTySYY2/WBlf81BQE8BM7gaqmeiLmLirTApSWYxDuK8uyje4QX6iskpa3hNFL1tvlXG144MStB0F1YgIR1H3SNkbuMkc4Y3jlgb9BPBJNGT06FFuEA1ZOmglXGXWJg/GRDXm46Jm+Wh4clfc6wA9+vcd5aG1EGnPGUc/yNfWFeWwt9RHD5TJ/FARH2QKu7dvGUL066Al5XbEU5oAycSMtdtRvQ2yS5xDftQEKh6Ki3/SGctwSKOK/erWj9D6YqbW6vQjcA= X-Forefront-PRVS: 02698DF457 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(39840400002)(39410400002)(39400400002)(39850400002)(39450400003)(39860400002)(6916009)(5660300001)(5003940100001)(81166006)(6666003)(36756003)(50986999)(8676002)(6486002)(305945005)(38730400002)(110136004)(50226002)(53936002)(7736002)(4326008)(66066001)(25786009)(47776003)(42186005)(53416004)(2906002)(48376002)(86362001)(3846002)(6116002)(189998001)(33646002)(2351001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1244; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1244; 23:HmJzu8FOfQsFbLT5RCa9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ascii?Q?9ZS0cNzSwh5LHQtopalKFSy8TYwvaImB9xDMt/0Ts0Vft97a5vqv35KeJS3L?= =?us-ascii?Q?o2841pESwFyTWqzaQLzvGu5XcMJbO63UrLX71FSE8uqPjsbJ3/Td+YouBFDn?= =?us-ascii?Q?PPDH+YtNg30QK69koLJ++G3?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1244; 6:aT874w51C7EM8EPxS9ut0FyE4JAWy7ehS4tb2wj5nhDe8qXzxsWfig/9ylEyxCIPOHgdMsxX4Aj8gpMVV5MEHJ2lVm4xp1oiA2ECvlzk7oFtKnxGoDr/A4JX6WMxPjmEyk27H+cl5OCGBRfBQ7O0iQ2r92BJoXEFcKfhVjMz6fjdh0zcBchz2hj0O7u6w8KPsUzFYZhfWKN3ZFlpnl+gbhKVwD4xIYDqUQkMpRV/ycJDGh8JkjG0NrdZwh2/kAbOAowRKf7XQD4nLP2QGNDkXkvsdtx11PeHmUET7nOTUkhR3CdqNRJRDX5HzCaAV4309zGonIQoNSSq4cpZpbm/qn2luYPhpfAFy+xFZ5TqJPMay97mh7PCtTHqbqw50NBON44CTCUgcl40yL8n1b82A2GuadSzlI8GURVmaqGXQG0=; 5:wnupR6MZSF9bYwwHc8iXNYjydhKByOcK1cRIICTyliIbg+cT+rKC2FVkjyLHgspwJeApPAbZQymaTL1N7V/9vTHZ0/EjFcdzkNLHZbAUkgvN1sGCqbOoswnhQKqMht3Qj8YDcec+9+zumTpPGzyAM242TlbzMCMBtoNUNsjeLrw=; 24:H0thx3p0WnEpUpK8wKhFxnF1QIdyKJ5QZUkbbKwn7FeSVsjgb+rdRaRY6w53rzcyM/LWQyJ3nuw54XCYd5aVlGZVa24o8FEQVXhdjsJtuBY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1244; 7:WFaOo42KkTroUTT9zAKeJMQqzKKpMvcOKCRUy/hXmJTpZEZmCBVaCnm7KEQdoHbgW3Yv05T7q2uD/aUXOXApbGlDuW4xJy+PgD11ae411DUFUn6MtsHobE1m74KLuSwqgY5lOYXX1JCLo6Rx01V3geU3iiKX1f0ec4hCXMI2Fe4ypP2MeY8CTavkEIElxksZT4ct41nAFVHKYWUtBmciGZsctPvpaDZU0hbpsjs4nK6YThYpB7/NLnLYgS7EP+xxW3be/w9jpcWQzRyH+AiBpo/4qY7Vld8KCmvye+7GsJc7rOM6Dz9ykaMnqSuYm8hPIDeydL5aTmYi27LskHI7Pw==; 20:fQjqbztsx8Ha8vKXpI8f+n9AKHQRTaV4C5FeUua0+zVd2oIJrAlP6vGvPwV1QFztpH4ffufQQXGHQ/37m/0lWY5GFcZo4adRGJp5UXplgAOFFA/yIHzsPA9nn+6I7VemR7R2Ym5FdFcixd/cPD+mvXdwRw3peHHdAKGLKuWvAzTnXmvK9VgpdKYcKX88hvnGOUoOT7FY+eyQH0lYpNJ40Y2te7C6ZckFsXV5h3O50TLgrbKJqWcJxnfTFORBn32d X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 14:22:31.1977 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1244 Subject: [PATCH v6] 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:22:34 -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 v5: - Include missing .INF file Leo Duran (1): MdePkg: BaseIoLibIntrinsic (IoLib class) library .../BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf | 59 +++++ .../Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm | 293 +++++++++++++++++++++ .../Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm | 282 ++++++++++++++++++++ 3 files changed, 634 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