From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on062d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe4a::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 A3F312050AAE1 for ; Wed, 29 Mar 2017 09:07:16 -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=X3EI7Q73sNulfvtW5+R9Rpsl3I9n9bOO1XTVveL+Bqc=; b=wSsV0hgD9n7XQecUsfyZM4cnGO1K4RHkzFuyiEoV2mp1UcdAgRepyzATlEd4W2bUnwfCd43cHqOMnOwHKQXar1QVAVd5Zgv4oGWP1uPhpmloBdustNH6xD41HlipQNeTl5bzIRDnUMx2pXWMuNhho//NDL7pWpwuyHmONN98S6s= 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 DM5PR12MB1241.namprd12.prod.outlook.com (10.168.237.20) 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 16:07:15 +0000 From: Leo Duran To: CC: Leo Duran Date: Wed, 29 Mar 2017 11:07:03 -0500 Message-ID: <1490803624-8727-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: BN6PR03CA0033.namprd03.prod.outlook.com (10.175.124.19) To DM5PR12MB1241.namprd12.prod.outlook.com (10.168.237.20) X-MS-Office365-Filtering-Correlation-Id: 57a5cbb0-347a-43a6-2cc9-08d476bdab05 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DM5PR12MB1241; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1241; 3:FiplYsOAJQQTCuN4CVD7tNbUm1Sh0YDxPNpMcERqng1Fv6uizFIoBLKS+LHYqPK2nOjrHQNV/awgX33gQBsxPj+h8UOjUg3F1T4orv94qj/h3r9stGjdjZOUxaLsqvlryHgIEn336dmPauB79ZKIsbS1yw/zwrXUPt9EmpFnkfxcuasn1BWwDagVc0ePxe4clKeBfavTu+Eg/OcdNCQgqELmoVn5+SOPE2nrxJkbhi4oVJSMyQBPOfKib8KX1O9HNUK3FjdROOTLFVt6MCv1RyhSVRMC8PMWI/X/tuMzFC8kxrIfvytzPGYeC1CM4zLDLQQCRGTFcM93xI3uc4QAezlONtkz9bqVFOeDZogG3t8=; 25:fRccmcqw2L6azlYdJIFwlGdSoJyPvyn3/CwZTLTNQPcUo9IDYzwg6JegLK2zxdFbXs1zmdz7o8wTXcbHCEu/5TeKjR6zHLPSPmItMGeLb23YcUMWT+nH4YTogZYrfF+jFE3/neSeIp/IFU+eRpYmI9gerB5Pb7ZHLNzYd3udJjyM6vXY8xa2eBpEcaGyqVFQ4daIEHCunS8N6SZOfo+b3RNFkGuj0KAEgw9D+YcX8wlN1cQxNYsgtYuK9pV89pIeT+tI7/S00jebkTXQnJzOxVqpR4pWgMcGQ738OeMoYhPNGww4IIugMhPKvIU/2D2PA7HQfaFvn+MvcWI5+CjHEKkggEBeiZ8wIFz2DmGO65WdAynKQTQaQwwXAYej/3QvKvD5ufaDjzVQ4RQs+GOaQiA3u+wVtT1XtoOZaedu2KNYhFUDPln2WEXZw/EjVXi+E4gLB9+Y47EL0o3lKCvDMQ== X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1241; 31:h18Mvi/2mDEjjIYC4sq9PT8iLfUIRH/V33lA2JNoUDYPrgNq48+Dlh4JIri0SpQqojcGTHEH7z/C7e0vy55SYVPyrMish0DJ+1MvKTUyrWMIiwjMvBQ+IKyukbmV+k/nJxb+6AowAGgHfPfaexj9flZvYfZ9lAso/1EAfoKS0fPrWWezFHAcsUzdVWo1vVXo9hPLxLuE47q5eoSFs25n4Z4pMwpdiwKpPOnNa8puMJSAgBPjDGm48AcgsKyqtpaI; 20:cPBeBk7QElZiJ5Ui/QyqKQyQnk2EQvSF7hjO2pZd1z9mAwGRdrAR9iVxa8YWp9NOpS4lq69XrimkuXJ10njjeK6eCd561DwF9X6XhjLYkOGeYf1DbYxrmjNvZuG80nFbCidTjS0tTTubg++7bl7/TkW3pU1kVHUO2qaoac6XekszJmGJsW4ujfZyRi9Y/8d9O8VpKmuOyDfGTmOzjFtq1Pj9MV6sfuMb8RDB86f8qc7OCqvnSG7PByHMkVVoFC3IxTeFZsmfFwl++//wn1qYqJvjIzU6Qa92mUxGk1hYmZD7WsurFdx/7oC8al3mJi/NRNQYjUOsTIO6rQCKE2bREPzANGKS5xhP+Pty5Eo19mQUPLRQL3QHuZCcWQ8SR1wBf/ZDlvqplXiamn8kzfLqaHmCOYxt1lmA4uErwwW5Irhgrd5BC1cXDWFsuQ39/yKQUYwLY5zTyrb1At7eMxNQTV3YTVY4xD82CrqUIeRB6dPplIjtVU8MwD24uKYQ6PjQ 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)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406075)(20161123558025)(20161123564025)(20161123560025)(6072148); SRVR:DM5PR12MB1241; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1241; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1241; 4:uCQCbrC/Y7sfYGjgoGmzmnQ6FijA2yD5xR3SKovkDwVZP3EYJK5JM6pWL4fKKLx+PRWuLe2cWdC4DotjB0mvbIA4zMvDMFfAdlR4J/KJY7qF/B7mW8BdNP5WsgdSvPOpDwyj8gnnKiXbR68/VueKmeeRAXUZYJwyVMqxRhV0JWM209havsszYvUmSk9eu4HD4HHmOteQes8hJs4YBDs3SAe7wu2u1V2c8olB0A5S5EPw4qSM3GudDTTEJRkAJDaAPfXVBhmG1CE6tuHKInsY/cozUeRYzVkkcYe1dH214Usfa9004kJ478dMNhkUNpdGS2DABXIefL9TzWGqAkA6atRQRnxnMaJRE7ALPaKfPvxakQHGvY4HRl+Fp+IJe7qeeDb9YFSQoITPstZakvamPBVCuH1TW6wV8Rtsb9ANJLHBXXkqoI1CEoGvDuOwL6wDRq3oFVq4rFR18QZ0zOUzBhDWbULRHzRfvruE/5oms3LdLccNn7rC/ONnzWc/uk9Ofcyxl55JTtFj8OTNfgZcwjL0GbbFDWx3vjmk1ru+WkGoa1Y4yBlw1lOlfTP3TJIWQxFYsERR9iMMtyRgvbFlZ4C95wI4t8yjW/rGpqrepEbZ9Logz7Loof0FSJ2tmNilGZGKGh0prQJzsiDwJ+N4y0rYyVXdloO/WUi5B+AEwYd33ExFXW6Bi7rbBwwYN+O8ttjzoQhrp2jAKBCGzOFdqI0JP4L/9VqAJA8zX7p9mhUEBUlUU/l1QJVZb+2O/D802DIAdhzu2kPRlXI+4lzytw== X-Forefront-PRVS: 0261CCEEDF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6029001)(39840400002)(39410400002)(39850400002)(39400400002)(39860400002)(39450400003)(48376002)(36756003)(6666003)(6486002)(6116002)(3846002)(86362001)(2351001)(50986999)(305945005)(6916009)(53936002)(2906002)(66066001)(33646002)(110136004)(189998001)(38730400002)(50466002)(7736002)(47776003)(81166006)(50226002)(42186005)(25786009)(5660300001)(8676002)(53416004)(5003940100001)(4326008)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1241; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1241; 23:CQTkjE6OWhCmNb77vt0JH45I++hn23NUljPh5+Opf?= =?us-ascii?Q?cikSVhegEu5IItpLKRSVsnZl0WoI4gJWhlPSOM3huv8mipjeYRf9jF8fQt5y?= =?us-ascii?Q?1/hnmWjp+lNdSOgzJlroor944harIItbq2m9Q+zY2hR8letA43/r6YcaasUI?= =?us-ascii?Q?1vo9EYGT9reTB2ePyboE94e6mYcs0MVsMX96fEACWF7ztar6IR7VeaaPlHDT?= =?us-ascii?Q?cojL7mfepLY0/T+4QpI2+A+DxumVsW/0AqxiN3UXGi2zjFFdGEIu0ad4nvRl?= =?us-ascii?Q?XrrGfESSXo8bozVZ5u6ig6oWHQ5/myInGel2cxD3o86vb3Y6lCzBwqmrFH9a?= =?us-ascii?Q?3gog2Irr01fU6QDM+CWNulqarsX7e/zdbVdYPtWzaBWdSmyIgMG/xbWctHh8?= =?us-ascii?Q?n5Aj7FkztODmnYx9V9J/8cN8eGioBmWnnXfKtp7cjdH9gYsVutpINPxcR+PB?= =?us-ascii?Q?syD0iwDaTSAfTDFKOP6ciZR5CqMuwugsyMR25lEQ9GUZMyI5kXPbY5oTSpun?= =?us-ascii?Q?mngxqA8MyALGYNo4smnNLcMSNczga7TDa0pwvuYGbfhrZMLhuWIRIlMyS9Mm?= =?us-ascii?Q?c9a77GULv+zwjvDWyIwpiyB3SwxyTX1FUSJyGNdz9iamNhZOyzW6eMyfARhV?= =?us-ascii?Q?j9KAYXbIfAVXk1vAJNZTBxIZLcsqfkOId8sNCdK25zNQXz4gtKoJ+MWfWKNt?= =?us-ascii?Q?AE6smMtEo1RHN+/PrMG02gDQVNcwsBac6Br0gRlkhDSF4VOVddhUdsjSG9by?= =?us-ascii?Q?fDmAQcMNmo1LUr8rMJ90yYNu/yUmd1s0uGuolAxxekss3YrvNnvK7oHL0TGj?= =?us-ascii?Q?rk0u1f2hA50Ph4UOqbnZ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:M8qwmxkj7g+ahISLmFdQjydKFnf5Cnh/QHRiPIitalsubHq3xgPiTDwGbtcgMJzbE2yKcVq57cP8ykRKFGYnfwkwiQeQx0xY65+ytUBdufiBjBY93L/5WTUMULYPN67zKz6ZDtLOLEtBTkelpsFoIiWxuhsMCcVX4fPCN2zw9k5yHeQzntFU8cJXSyQyubqN8iWrlxnPb1K1TCQyJ2vsDGuRT2uvgfOnEbat3vQvt1qusWLALuhyjiAXr4tJrtkfSB9EAC7VL5gI29OIye2mhpH7uYsxTwPji7oVcra7QD7xkBdJf3/twjCRgL9RdRBebHwGTl3MXymxjN39FkLVTQ==; 20:CfgnnabB1iODeEN5kPO5Hdzvj8yTI6XmhLM4nX1LPhEsUxXiMDC4a/eYT3S3xZE0UW1lxhq5S2DIHlNWnbDlmTYRoVojxVP4d5Y3PkPs5F8vpJsjSQR2KeRZgOkomcoCBj6TegOTuP3/z74oFwQ12jOW/7Nf2N8KrYY8H6Q0kU1DJ9DiFi/FUOYG437LfjmHtsdZbuk0LpVepxC25Dpod1mQk5R+ofgtlLj6pz1np3rH3E5Yed0Wm25qufEdSwEi X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2017 16:07:15.3059 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1241 Subject: [PATCH v3] 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 16:07:16 -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 v2: - Add .INF entry into MdePkg.dsc 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 +++++++++++++++++++ MdePkg/MdePkg.dsc | 2 + 6 files changed, 1219 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