From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0603.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::603]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D85CA21939313 for ; Tue, 4 Apr 2017 07:11:28 -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=3BUJyMxgGRTsJYpI7BygYRMaKCXmZ7NOHn0XFmnSYr0=; b=cwBis3gwoaZbR5KYWyKWCvfFFraudxlmXgcQoyUZCMkk3/T1BH0+2Fx1VTBcyt4YL43JujxJs2AErYnnP7qX6Thw+xpc64AnFjt0PYVOLuobnrct8LQb7pQnZnJf98/Ud83cIAw2DmVHSl++5U8gWPpLypglZZWkIyajlqm3LAI= 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.1005.10; Tue, 4 Apr 2017 14:11:27 +0000 From: Leo Duran To: CC: Leo Duran Date: Tue, 4 Apr 2017 09:11:17 -0500 Message-ID: <1491315078-3648-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: MWHPR10CA0009.namprd10.prod.outlook.com (10.172.48.19) To CY4PR12MB1240.namprd12.prod.outlook.com (10.168.167.15) X-MS-Office365-Filtering-Correlation-Id: a6eb2d9c-bf40-4900-9ce9-08d47b647c3e 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:JQgmnCO182QBT4kXJLkBRf/NDYcDOH84bq+s4qpw0Q0tGi5Z6i2ChmkmBseyZMK8ovw2KlS50NAt3GDFTmwn0xqjcXJXqqmO5/rLd41R2YFfxHoZKVx10h6GxDdY2iHXiX2WtA/MkQ9Mn64GXk4foU0qyCmFFOVMn119+Lr7aqsGruKT6T1q/ggK04of6lCtZMDsNYvBwZFooGSo/RUtO4ShYPEzZOzk8XrdRpfpGGbaOTgm6k4JJK5LRpW0kCLklSY7nvFq0r8d4aEcGCjpCAzH52URUCDACmy8wJ0HtvbWTD/COWQoIF1T5VgkI5ra7sGVYn2AZSgfuekCu0x6eZ0k9v+UoznQjVJNG0tpN/8=; 25:bKD8VdDbTKYbckoMwqVGB7/0HEEwI/H/UVZqJ/Fir/T/lyzuGUo4BupcqrYDpnUz1KDwAI2SbnUgSBtT+r02/lDJ/Ue05689gWyxdsSTGTq2MyjXYWgZS1nrlGQuhHC1vqP8vN9tSBhUfXSYK/r4/RPqZB+H4TRQhLKgTPu8kV2kRUqObf4094KEhO6mqlmGYp4kFZNWur+5uBuPn8v/JpAZmW9gefZXVI+iSfTBbY/0moJZ/oYchrDL9IMXBkA3/YlSFZATzeBGJcoQd3wB6rVbq0lUB6/BAI85XismunJb2F0VeutOzzltui/AeK+WQJZ2MS0ZeSfy2RKlaAqIAT1YgLxvwcQoH6hxNN173Kujgb0Rh7lERjPsaz5oF/bRmEN7cWVQLiN5dN0X1WdRcq0RxpbuGYXtKDSGU9RFwHXlxs4RfvwxeEXrsZNjnwCGMuzrsncJM22TzcWx8WxIkg== X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 31:10xffJ41DRoUtQwrOE7GzvOUc/aNVqB+OdpQD7mGdrGcBrjQKdDM2Ute6A1fw6OvsuEYNcG7pxAJloYs6d5FVepFJKbDp76UE7duDDmxtvKCqdfzRqnLNFUB1UJ9BHe2iRJQxfixTrKbVhR+zjgvAvaW6jdcnUzv2BoTwJQ8rLcrh9f5mNHub/do8rUIXG2Drc2z6wf/ucu6v8/61NQsNDF8O+KjrA8nj/Rm/RVwGTw=; 20:TwNEPqmBgAwtGf+wmkTxJniBXA9CndjH6azQQi7rWQCrWisBBLKV0rcJhn6SrAVJQ/raDCuDZwtf2bhZrfuKXHYvBlB5jlKPyXfyWSbkg1ZIdNILbZmYAwsbXMRB3aA0GDE695mmYfHE4QcvXQ+w3vKIzKs0RRe3pLpKMOk8cPa0GKCAHezu0dN4JIW2qScHf61keS7ThvYu6MqkB7kED2+4fazrWY/mRaYdJWnejx5PD6L/ZUWCm0AFkLd1mKUjlPmdyOeluFk27He6vvH/lp/8EFdIP/L6FSIPOGyo0WzOmJlXzBpC3ioVsaL61/KiFElxqi3mH9WNbOSvEjqml/iF9vdxroZlESTBT+Z7qGxMGQEkwy563aEIk42iQH05Aj8oYfbB0JsD+qhR2OFGmfslNUGT+TFK12HzWw+yuU+H+vnXR+wwqIATopi/BKk4X+4ddSzApd6VilEdE4xiQMOytKXAD6r4K0cIjrhWy9JCNRBBHR9x4vjpIK/2EEXT 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)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123564025)(20161123562025)(6072148); SRVR:CY4PR12MB1240; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1240; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 4:SSvTBe3CUiIFdPG9dkthhWYtjZ7g9b8q2iZUoJ34HfOypSXShFONM0m0GI1itv0l3pWCaz1V0reDB83fPSFA1faI4yAufJVIeKvA7tLc3D5KM/6c4Ob0SzJJL4Xr2gqSkf4FvCn0+85x+qQoGgmo4xxU6WON66vZ7t339H7PtkRfl/73caNLuY+d2wiFhBo0923nYcia0PUQgRecH7jLmRDLTuuPF/CuE14ytbLPwOtMcbhlRXFzD1IqIyGrZNNUgIxW2OAoQN75+sIzySoXlD1bATgPQG0394TlJMwx7c2IqXxNADQaL12lav1l5Tjpg2JLBQhWw3sdX1dAX/LTfYx4hPWRrhxqd4CI/f0Qo9AhyV6Fz61vQszsHL5jQv38t4ZhBdWc7CHUoyeCdo41xmET2/+Oo33+tEUz96saX+ilTpO7hPiTZ65ZvS3c4S0MZNmf8dCwg59kHUFGXNSAa/bzNE2Sy1GGRF3Y8R8l2kvwiLkgqqV5XBA0yB/MDrnSPuurUzA+75bpN1GOGPec72tFOcgy5F9h7XYaan3qY2hBkPjTYSXGvTPaaabI41hqj2pQjLyh3KPDjQ4pZA0//MZ/hr1ywNvPVMHzyI4ipw+UPXN6xrEVUDVbXkVVHtgYAR9GqO6Z886KZBOVkBUevZ7bfkZWu+jUoeKfvR4xEmzsaym1QTWa9F6AmMfud/3RtG/4a+qnqE9M1feF6dooTIyUNx2ylpC6h9ojQgJZ8dE= X-Forefront-PRVS: 0267E514F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39410400002)(39860400002)(39400400002)(39450400003)(39840400002)(2906002)(50226002)(6666003)(305945005)(50986999)(33646002)(42186005)(7736002)(2351001)(6916009)(50466002)(81166006)(8676002)(86362001)(53416004)(6116002)(3846002)(5003940100001)(53936002)(6486002)(66066001)(38730400002)(47776003)(36756003)(189998001)(5660300001)(25786009)(4326008)(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:2B/ua024S9kfBPYiFcFqkemSrY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vDFg5kY8+j+eFCTgYklM3CT6vDGCTgzW2mM2?= =?us-ascii?Q?RDZtRoZ/I3rKagVmdIdLZfomuMBpWPlesU5GrnuCw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 6:iY1L44vbArV7+7kFHOwItzcA5zuNxVUtkFGhFCXFpIy/OBBSIBsovK1PrSLPOf1qd9kLgxajNmrUxqJH9/niSovi2DERs/IgSyKxPQkj+qUhNNsUyKJ1/wrcp9jBA0mb69qay8JrkCTJCGvxGlk81FzQJkIfymo5rhE8CO3adHB7c1VHP2nm1HK/wJOtV7qWReAWvalKEfbKF9pv/tJSxKyai1biCa6y6CXzuMMLqKahUVDEDgUnfhfBI1FIG/ec/Wb1W5xl19UbfOzeN4RQJbcZEhNoc5KLNbqZl9TOhL4SPCtkLs8e2NKpWfPiwtXYPowmOi69CqK6DFWhsfgH/n9qbFydPcQijY0LZJggIc8VwuTEQtttSDxxhjo5RAuN8DAkvfUurbu0ciDhqqD/MPld0gwSECfSVEiQtvXDXVA=; 5:m8/a0VnqlFWMrmth40+Gxosq/S9dzhnRyDuOY39Nnz5vXN5hqVOPrd2X9DgCI9Wp5XN0Q8lbXW4PhzeSn/mNNuec76S1FPozZ1hAC4aBc5NHhHacd7nYXqDYBeltlfCUnEL84SAuYJuqkrv3GDdT2g==; 24:f+6E6PrccDk8ickasx3Ha6P7oOnGZTGadwGmVFxCgrYMHeMaStghD65WUC7lLSTUL6VDxrSiNEzra6+lF9H6ODRQrMG8nelPsLqS/Y+Csb0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1240; 7:GacdPlPCKv6T5r8HLbFKy5UE/DGosBp/mNKdeAYVmgwUxoWyMJpeA6NhFIjdgLlIlVMiNcT20pN+1u5orXjRcCOPLjKzOYp4ZnoEN83WSS6J7LIUio3Glbwi03Y1xtV6P7yrfeYD5FmDEgLjpMzvrERIti1sm3SoW9midjcDiBoftN9OKO+3gcISyMNROEVN+EZ0Vpud6cGmuCgPUtrakGkc2nIkqmS1gNDkjerrhIkLAgVLi2QDbE+AzTxHnd0j3dvrRaIiaIvXDdX2YczZmDDlwin+iD77gZJB5ct3UWEmz8DC2pAV+D55giAYRBOR0yPKWzDqGEaruqd6cIeddw==; 20:kLlN3FTmgbRlNA3mLqSAkvUGXNpS3dgbPw3zUsmuEVkrqZj/z0pXxQtV5lJp7TDo5vEp5k/EwZK1POxnOrvPe6LUbp8y+VpQkYAWlWHzeq1sOPXCPuCMcI45ofonf1SvPMOGT1d7fYAr5k958rePtq23CvYhq1LRIWAtHhvk5hgbzAN4wnV/e5XC0CUh3QsEejw3X9gYG25487JVfhzakupIGTgyQcD8lqmxeuQuL5CFUFWqrbpJyucsWWSNw+Wz X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2017 14:11:27.4524 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1240 Subject: [PATCH v4] 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: Tue, 04 Apr 2017 14:11:29 -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 v3: - Remove .asm version of assembly files (include only .nasm). Leo Duran (1): MdePkg: BaseIoLibIntrinsic (IoLib class) library .../BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf | 61 +++++ .../Library/BaseIoLibIntrinsic/Ia32/IoFifoSev.nasm | 293 +++++++++++++++++++++ .../Library/BaseIoLibIntrinsic/X64/IoFifoSev.nasm | 282 ++++++++++++++++++++ MdePkg/MdePkg.dsc | 2 + 4 files changed, 638 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