From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on062a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::62a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4B75220D76485 for ; Wed, 12 Apr 2017 07:55:33 -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=CGhgBVkpdpz6IjveGXwfMelZZGboSXgevOwfYOw+iCI=; b=JixlQ+GRuDiDEXG4czY344cSDlOFdfJuG8xIF473VOeg+qKIRJMgFAFjecf/g/BKgECGeFL5OqvBGSxxlNu0PEcPkrh6e8VqNabholXDC6mWma69piCMWITuVHlsOy8tl3wLz8UKELjeBllWoDi8sYFzyD2WHFdAx/yotT9n1L0= 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 DM5PR12MB1242.namprd12.prod.outlook.com (10.168.237.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Wed, 12 Apr 2017 14:55:32 +0000 From: Leo Duran To: CC: Leo Duran Date: Wed, 12 Apr 2017 09:55:22 -0500 Message-ID: <1492008923-6566-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: SN1PR16CA0039.namprd16.prod.outlook.com (10.169.34.49) To DM5PR12MB1242.namprd12.prod.outlook.com (10.168.237.21) X-MS-Office365-Filtering-Correlation-Id: 6ce90a19-a401-4565-26c8-08d481b3f7db X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DM5PR12MB1242; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 3:HHI7VZeDJDsHnSWTa8flsApDfdpfHccqsWQhJuTW2DyoLzifvPD5sVLn+41Q3hOy36AeDFWSnv2eLXJ0UaxHd3Dpd4FwcyIwFwiGRsEvqf4ka38ykTIIMkvrLLnVICMl3TYQczvnmgMCc9DQxTjo2ijuJcgy2s2MgRkk1HoOQQnE6Z2G4hnRhMq85jCi9Wdk1y5muYvKBzjdfbJVSFQdg6v3ybJNUDF4L0gHZfLb9emt5Fvky12lWIzXWapWtX7c+1hddiMie0Zhxx3yEAvlgUdnvKlYSq7rtbXEhXu7V0R3BCZmY2rh3P0ozfX+Od/7LfGRC+i2fNP+jWzYY/hrRm5gbDRxDGoleSVLrtGGJOU=; 25:UBbkGaWgbaMnfWBU97JZoSHRRFJh+ncuFjjbc3/Hjm5j+V3HssMo+8DsxKtCkAn5BQ2Bhg70nAt3yWZZXXgxuiYZtWN2lGCYyulHR0k8g6V3H6rW2kGb2tBb5XX1Kk2DCIOVxHi7G2pNF7dR9c5DjMjnwca87d5qDu4VBeNpW+69g40DxkR+fyNce8OW6cH2h6zaBaKnzCWExWaKKqShvdeuLzpBUQcdeVGUHQe7giZmaQAROouJA/Vl+wQA9VN/m1pVXmtN7rrh1UeK5n4FEcKmMDG3zQVcsw2uBXygW3cHFSoe19oOmEZtVl+Uf0ljxjTZxLybEtZpVU35eTYgdPn2Unp5mmrecooxeTlIKbCsdNkCxYYDj7t8bZf4DHZcu6VY3sgH3dy7fSrWz24x4OQP6CaOqZWmG3MUwKA0Gmf3qv1rfUAn3pr7ZvE45v75WdvE7uPwF1/Z9YzDVCWDgw== X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 31:6rZ/M6qZqMGFtNZHMCEN8DgRVRy2ip47cPISDgn+6XxVyijufPuX0quG9qf+XZe/4wct2+nHcc4gHEZ7HvwEfwwTOwRa7QtI2kfAs7JVbdtYqZ9se9eLJklNaoDALVKbLJKaZ7EhGxiWKEPPU4VylluI1NUvq6/Db36rYtUldhmVdE8iaTjX/M4/Xek4PtpVcw0WzAsv/TItv/YGRXL1tvIBsZPMloY5IrReRRS5bnc=; 20:YdypUEtabApGEa3NozkeddXDsiycGHeVA196oa70UTjoue0bWBr6hlVDgJpMAyeQV/d9EENM+26d8L4JKc+DxQ4L1QyHa7pXacppqwiWd87b1EQXXzZhvbzEbS+z3TqIsoAnzpoWY2uxIshjddvVnWHk7yMLuKmb0iVbMx3JTMdn4lMQMT3YZcdaSW2KC+kkGUPxZaqxQ3CvjKbucBpm0NP1jfJf1x94tSKkcARQ6aHm4XZH4FjSGI6ivLKjZ/mzsJeRMIT8DcIC/3MLfNhulDBJ+rsroOPZSI3HHKa5EQwU+KCcTMZVpFj7rvCR+TDFC9iQJNeMgxUErbhwucaFsamk2o9EPqhWftipS65fD7A6LrcTBlb2E8aoJWdKik0Q+mYH8qSzpv3ur1parYcqm6VGi/J57eILscMQiaGUo3sTkjOXGbQTEe8/jpyUpeRbV/RbgT+kK9ZHRLwwvnWKFaG8facV4Y3VclKPsmhdAiZlXe4JAk0xyFp6FkvEiYnk 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)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(6072148); SRVR:DM5PR12MB1242; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1242; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 4:Zb54naR9/fOmAuYtA1diBxFSSK0LbqN4fZlsmao1BVqVSzcolj2ks1tOHF8efrGDTVfCJoF75hfY82XG6S6ARRn/ueFNloC+jMqt0O9EXCmvSOBU3J6nb2S8ziRlLhDg6K07Ds2nYFJl40aVxdbMqtAZto9dGzJyBmVWL4q26IDwnnXLyqXHEupxd2wP+VrLyDTGS431F1mPp6NvGM2gG0ThnLZHp2qF0Lom72O/N7D8EDtgoufPzSB5psbQE7jq8f2k+saZQHt/5qPyaZJR0BA+HRkOlujaArro/1i61PX1LdgWkrEOb0WyPgfqcAeCuNG3c0fF4hvYBtPHLqhNLQqJxLhUSXFjESk3xQHnFk84DwHEqpFiJr9WppUD0fMph8zciGXeRiIO/WxSHnv4YbJiWwWqaGVcVboBc7fz+WAY32xfiOeB3MeSNkUzcLQvw7yswkQQQO+kTZrWPnguz0+S1UH1lSKGPxB+O//4FKZgAdVsLJdpdDNcKY5GoCIymuhJvWPNpIHIzGfoJGwF3/Xs9e3jt8py/sthiljkRRzs2uQ1HdBxKNBclBVTh4qBqugCq3F135vE3R5/51Hl8C+pzIjrvB6VHHS41Vbq7nN+po+z7LdwZbDs+nYP8S9FMGZCU79hOU7pKvjI7TgOG3PFH82SsbMLhzwB7tWX8b91ibsQYJBEe+pyiMWM7Dl3QqjQpk0KG23OavSQKg6LDtvWYwafhA2TWKZcG30+VIc= X-Forefront-PRVS: 027578BB13 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6029001)(39450400003)(39850400002)(39400400002)(39840400002)(39860400002)(39410400002)(2906002)(5003940100001)(66066001)(6486002)(6666003)(4326008)(25786009)(86362001)(48376002)(2351001)(7736002)(6916009)(50466002)(33646002)(5660300001)(50226002)(189998001)(305945005)(53936002)(81166006)(53416004)(50986999)(36756003)(8676002)(42186005)(3846002)(38730400002)(6116002)(110136004)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1242; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1242; 23:yPd70Kyam6PHPqa4jCF5zW2C0rILk22RhCiL6VoFW?= =?us-ascii?Q?zUAH+guvWA4tFlNetWk2pYYj+A6HzdUiprR93btv5FPCJMcJMFJzMo9s3Le0?= =?us-ascii?Q?DN41VAEohZOGSrolvCXHg8arlKBPmBud8ze7sUU8dMLki5n0wk+IPbtQEyUj?= =?us-ascii?Q?XsHGa9/SqMZehmVY6RqfHInOuJqs+HXw4b3CUbbrfYgIPafuT03Enr3r4+kp?= =?us-ascii?Q?yIz9jS47bi8LDpixx85gl/439sg+RD9taU2yMvdJAxvDyUfJCxVWQ/33+WMm?= =?us-ascii?Q?/2E532uU7xN2+Fh4OWxLBuA9ePK9joCL+BldICPb6DlI912uGHBEtA5rsjev?= =?us-ascii?Q?aTnDrFmxtl6C5Vod89i+M84Lb1YaSd/SyhLqHTxqRF9ck+XWY1ciAMs81YNS?= =?us-ascii?Q?ktO+aIMgI0lchn5+h3D/8sRGaz8o61uFinpsIMLz81SK73d3J0/zpvNES/Bs?= =?us-ascii?Q?J1PDE3QbCTGzlQyhiWIIVYuUzFV8J6Qg5acyf5klGK2cGXmbvFzx7AaYsHyg?= =?us-ascii?Q?BrtjlKoXuLCnoaVvHFkw+Szabkb83fWB/d4W9hVtnnyGmoKc2oEdj+NJuobi?= =?us-ascii?Q?heICQPclMH5YmN/X9fiRoRaTHkFQReeOzKoZARkqWSAVBb7GN04fjjXXHSfa?= =?us-ascii?Q?8NZ01t96/YuQKXTdWdaao2ltv99VlY0kRgD3NywAIWbbnJCG1dysL41efkoX?= =?us-ascii?Q?YEXJeIqrrisjEIILUOv3pSQ/FZeXXUWrGyrqInDjeXpRLYa4xwLp6493tdUl?= =?us-ascii?Q?JlFWrIAdIj1Jq+orXQEFmRw3VSB82I2aAI+q3alEZR0Qs/XI50Do7PWdB4/q?= =?us-ascii?Q?5HZg3+dboEVBdsoSxdUyHXub32pr9GnjiTK+CUZj9Y1mFjDNAHhX7wtlMb5v?= =?us-ascii?Q?Tbv4b+NNdtSJR0RUVIVsLB9GgbyoZxhP6MVl+hF/BRpopIm5D5jeXQK59r8Y?= =?us-ascii?Q?sNbzsnQte8yKkV2fj02oQ7+iRAAapzWnwXSpMXsxixZ5Respa2twL0TzV8ry?= =?us-ascii?Q?HJrZ4wF91g0qvYShs9D90G9?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 6:uNbJkmsu2Y/L+rB0Jsx1U48Q7L51pQKQ649AyvCvG3fozh/TpJE6H8gVYsNJqVPhxZu1Or7xvb2W8Vh5RIto9o7TrKyum33hlKjK2OWSJ5qsOlyp1sEy7Z6Yhojik2OxIg8otfUeV8UUQfwFWc/GKRwoUUF6xBeFRdFrXoKF1iydJeLDG2AUGqA6QljTUbWf5BryVuFJ6XZ38yvnnCZ3lRmourugbzKwMD3vqWSYHLurU75JMGimp7zgcobjJ6b58NJg0xTlPzQfZNFBoAbpU9oVDzmdsUU1jgnqZsHhHyiB98Hb3kme9vw8NRxBR0K4kicHgsrrzGlDu5grsGy5bRW0HtGUWoxKJ2qBlpiPpQzDNNu7Xt+Qrrzg4u4KUaDKDdgGtEMjKykheYKtukawn6/eu/VZpRdNb6pHlaveLFNHBFfgZfvbKbfFtpVEVbFNHNTNPFnSwfYXEBRlZLdqYbGXf54vz95DdmE5bcz5/j8=; 5:cDyEDOrgKB2dAmek5YCEKQFMvoeP5/DX13ym0sNdQwBVCZJDI7yM+2YwDxl+V3tQt1+wxDg20vGvTIakR7HbsEIWzUpxANEfS9RcZy8cGhzQ18L+zkSFRf0TelWetgC94aJ/nPQlXriIvKA9tbM+oqpnY1kR/cvLIVsvhatPvBo=; 24:bSkri9eUD1XUq/PejakIcDKYS4MeBhJMd6e/8QoJOZSMKrVDy3vxcmVeBwprMT83Jzv17pVJGkeT1MeoriFKD+s6lhGhTWaVe51vZeq+XXI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1242; 7:QFwNWw1D6ofitKpXHF2yIdp9qwW+135+6W60vQaSZBEqvm5xhKaLXFTaT5PEM7L+1I5qg6el2+k+LHXDG9skbxo4LttrRb5jPueIy9u57+z4E/PlnK+SdTSxxEj3AX7MdjwW6oRJc/UE7csPwAdTyfmGpLFURPiqKQpOtcgnV13gC+Dod0o9l/C0kUAd3u6aHUUDthcvP7inrtxKSoXHXQpSrksmbbqPlGksYNXZBCpMCBPzpdSFLAAFSIrHY3F/xVuchGx0v47N0jziTwIRBXtm2bYwEIiNR1ezfWpgSW1Mm/R++X2YDMrCdUGbDiAAFkpRzO+SDeTl7odRhAqOeA==; 20:MbnPLruxqzJ3OgNryrlCrB055L6Zdrvvzm50VZ0T6YNrbUbqw7opdyr1HuOn81Dryn3Y0864mRHXGo9DRgdZlhG9FJEr5N9ydzHcCHgt20GGQjW1mS9OUh+IAsZkymvDQ7fsIVhszfnHWHjvi57iyNn6f61zC3ZBykDwolgUkuSHEBPlTqe5scIcKTy9cWL8PMMQ5QHibMbTyJNUW78LmxhL+tJGiSW1bPXUg0iYUoEaZb+cMCbACcnhjmb3v5dl X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2017 14:55:32.1964 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1242 Subject: [PATCH v8] 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, 12 Apr 2017 14:55:33 -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 v7: - Wrap ASM_PFX() around function names on 'call' instructions. Leo Duran (1): MdePkg: BaseIoLibIntrinsic (IoLib class) library .../BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf | 59 ++++ .../Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm | 299 +++++++++++++++++++++ .../Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm | 288 ++++++++++++++++++++ MdePkg/MdePkg.dsc | 1 + 4 files changed, 647 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