From nobody Fri Dec 27 04:03:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1500502179796443.8817334838417; Wed, 19 Jul 2017 15:09:39 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8673821D1B2B4; Wed, 19 Jul 2017 15:07:39 -0700 (PDT) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0062.outbound.protection.outlook.com [104.47.40.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 949C521D1B2B6 for ; Wed, 19 Jul 2017 15:07:38 -0700 (PDT) Received: from brijesh-build-machine.amd.com (165.204.77.1) by CY1PR12MB0150.namprd12.prod.outlook.com (10.161.173.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Wed, 19 Jul 2017 22:09:32 +0000 X-Original-To: edk2-devel@lists.01.org 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=l7q+/lJnDUENMZh2eVrKK5fvVjGv9kkwOKa2Ziyi8YU=; b=ZTmB54KDMpF3+lWfExvF4vrUnHHowtnErJHftO0PJzFMwPUBfECWXBbtcI9A6yBKuMxjmxyex/WL70KZsNo1gWy4Ov4qDegrpsd9ZkuZyvYD6A2b72YrYlAmPVowgl6R6r/iKpyhMazY1ih3p+UpUWfsFVVxj8/9NqEgdCnv/WA= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=amd.com; From: Brijesh Singh To: edk2-devel@lists.01.org Date: Wed, 19 Jul 2017 18:09:09 -0400 Message-Id: <1500502151-13508-2-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500502151-13508-1-git-send-email-brijesh.singh@amd.com> References: <1500502151-13508-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR02CA0012.namprd02.prod.outlook.com (10.168.209.150) To CY1PR12MB0150.namprd12.prod.outlook.com (10.161.173.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 21a87740-61df-4faa-11a4-08d4cef2d5b1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR12MB0150; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 3:jitbORAyTADKjW4DlgnJoqbZNcvXuLvLnTbUqgJI6++JffLsvwUhc8SwQh6uXOVCGawiuMDWQbA/R+6KdVrbhZeSLkTnMM5ymxuOHbl8slSp2jzUiQ67GXqbhkzqf39NxCYv+ghiwHNFWhRsI1mk6UBq6K3G/wZv06K04uZR49/w/XUxY9V/qjotqZCuwRynmTfTz2aEzcRthuXdjF76tdwcBpJO38GAb+zucMC7RVpVYX0r6W/UieXpwoPgO5vGWbS40mFzmOHONvEfvYcsmgmQnfmiOqU29MBLEC1Q0Vlh9d1SneeSIGCqp8dpQGJgFwuflq33ip4G/U5PAvfEeqH9KJUYKCwzmZBSNy8I3ISVW2OurbVRm+g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ange-Diagnostics: 1; CY1PR12MB0150; 20:yg3mnycMnMaCNjcSPZ7jpZA3P7nrA6QG99rZa3r4BCxMl9pVkPGISM/e7q6W28wdrGJKAmP0jggtPofBObe4MzQigMKpJex0KuD0evc3UZeIN8b7kAxoRhkZgBRVM+pIuYMaivQfJi7oyiOMqF49UwnWZgRx4YLTLP8C+I+ok1GeP2WEzadnry5yc7xpVi2p9mG61bqWcJjK31PwfMchapxriYRm9IaCQO9Uc2p7qV8ErARip8c63n8iW5fFn9DPe+KshnUoYG6dUdjcE/c2XLxtScCckDfeM5G4jzN0F4PF5OzcVO+THhqaPUkoTUvs0QSNPFyhd+oKWxfTTieZ9sY3yYQqwS0v9znel8p74ttjUfTOZzWdz0w8yFTBtR57fRT+xG90ySrEit8nKm09qmPo3gzI/gSCDh2SqHaeJDsthwrtmFNliWJOpAtHITTObcX/w6ckTdvOaXkQnrtX9gMnN/fxxEwymnxck/MbwFeUHyt/eXYOHIDQCF2zgryD X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR12MB0150; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR12MB0150; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0150; 4:LfSVI8BSUmzu0pJXKkLHZSnXIdgBDPQh1rpCjFLQEw?= =?us-ascii?Q?dxWAt3ft3lu+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L5oVqM?= =?us-ascii?Q?nt3rZfx/Vh7yQpDgCCjNAKA0v6HCL+Q7vkJaBi4TuUe+gaGrFeTlsJnvbBnT?= =?us-ascii?Q?2vJ6vQDni2qDCLVMzRcKO3olKh5mfJ9WmtMB7WqIXD7NTSIkRfyDOyf6DaB/?= =?us-ascii?Q?qYKj7OyDfL5H9gNyNdKubaxuKGeZp/Yx34w7nhOFeIb6bXY75G/Csvwt5JFa?= =?us-ascii?Q?tYJfs12c4z5mZi0+tJ9RGQUyHPMva8d+ImWhglQyuRhPz/1gwmxKS4oYL9a+?= =?us-ascii?Q?enTI8YHFW0pIeZScp+CTRklrlortXXb5UB+7kc8JtHtv9qclyF+vKJcn0X8I?= =?us-ascii?Q?XZgFuf+UMdVW3LsbE=3D?= X-Forefront-PRVS: 0373D94D15 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39410400002)(39860400002)(39850400002)(39400400002)(39450400003)(39840400002)(2361001)(50986999)(2906002)(6916009)(8676002)(478600001)(5660300001)(33646002)(81166006)(76176999)(53936002)(7736002)(50466002)(2351001)(305945005)(53416004)(48376002)(54906002)(42186005)(4326008)(189998001)(36756003)(6486002)(5003940100001)(25786009)(110136004)(6116002)(50226002)(86362001)(47776003)(3846002)(38730400002)(6666003)(66066001)(2950100002)(7350300001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0150; H:brijesh-build-machine.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0150; 23:EWW+9h1ngb2xfTq+fmZNeJdLb923PCgz/Da87g9Yi?= =?us-ascii?Q?RPEHFfZjRZiZZO6ZKOAJweTxUw3f9MSf2wuiO/J50QNugyXtcOee4cfEF+6a?= =?us-ascii?Q?OE7mUcZRvwXe/w5qPuBL+GK6o+3ttdpcJqBc/vJPX5bR71FpsexYtGDGiSYZ?= =?us-ascii?Q?YooeX1cGb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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 7:tD4zaK58HFhWBwVdpWy8kVEgGQncQ1P965RQbbpJ83CNAXmCl17dz7OJlZAh9M3K8KM2B1vaG7W2ccJeGIldjv4f0n7cS6PP2vvrMwbiur81aLYqR76PiIdTPHV0pPwcXZJn1yT1N13KsnG4NUMJMAulIM7Nhpe+HuRXiiFXKCaFJqMykw0hTpHSp7eNa8iHtmjndBX+v/2U7a724ONUugDuz+cdoqdCubmW9RdKJbyPQxA0kfXfmr/8QB82WYsldTfBJEmVT5boY6t4AfSlY0MmpAALGb+M9kMnOfUPEXcA7rUjrGqLtImrNkVEwGungFgKVWqH7mLFQufaklg8wK26/EkZ+85191yw+GxZKsseI0odBropB88jZdasT5G3k9sl4HQSdMKg/vc2gUJoKKHDbrhCWM4IkXXNWJ+2DzMHT+icH5tyxEaCf72uKpJj9PAtaVq7ZT5q0GvpAWBufK9r2yzbJx67gd+FwegpK9HYJdQ4FvovjV7K5MGJzORUv23FxUitXRd4P5Aj+lm8cWciJ+UAYffGlGStHoiMDNzVTvyh1+KSmQdhV2xIPwNNBJov/h7Nti0ys/Sb34QouELdzZa/XK+K+1QfZhet0Xz6evaVp50J/3FGjeiUXtpcWRYmiFGCKwbHaiNI3l9IFDXeuGTmKD46lT5s9Mj8X0UdNwEml9UnlT7EIc4fLG73vS4OxMoD0dhi/I3pKmv0nEIkIrVP2/rjI6bYHF54DWkdAVNcUVBGbJGQ1Qx6OdUUjKVpq2mu5D/Bh24UTji4cUnNxEVg3jn01DGXrDTbU3k= X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 20:pja1fiHUm7DzjrNVUMrW2F5MCde4wv50JcCgjHabJtgrDQFrJcXcePFllXS6rSSajX+0Pg82bINhhRRwd0uXINOT+DfRlhTDZlClJQf/g28Mt1Zpla8qeuQPJ9oRUorwG3K/zWqPZ2yp0JjntxBFSdtLl5I0q7rVrIV8QhnroautGC6E37aGSWgzxQH9If1flZ2temO+yfnZYQZKlS6XhOU82fgGIgLfETsONZN2Kz5+EnwQqTnHM/1gAvfRdqte X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2017 22:09:32.1125 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0150 Subject: [edk2] [RFC v1 1/3] OvmfPkg/Include/Virtio10: Define VIRTIO_F_IOMMU_PLATFORM feature bit 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: , Cc: Tom Lendacky , "Michael S . Tsirkin" , Jordan Justen , Jason Wang , Laszlo Ersek Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Cc: Jordan Justen Cc: Laszlo Ersek Cc: Jason Wang Cc: Michael S. Tsirkin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh --- OvmfPkg/Include/IndustryStandard/Virtio10.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/Include/IndustryStandard/Virtio10.h b/OvmfPkg/Include/= IndustryStandard/Virtio10.h index 4c9b62a3cf59..5948b9ef1d9f 100644 --- a/OvmfPkg/Include/IndustryStandard/Virtio10.h +++ b/OvmfPkg/Include/IndustryStandard/Virtio10.h @@ -83,4 +83,9 @@ typedef struct { // #define VIRTIO_F_VERSION_1 BIT32 =20 +// +// VirtIo 1.0 IOMMU feature bits +// +#define VIRTIO_F_IOMMU_PLATFORM BIT33 + #endif // _VIRTIO_1_0_H_ --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Fri Dec 27 04:03:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1500502182472207.06618496228532; Wed, 19 Jul 2017 15:09:42 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id C0AF72095897B; Wed, 19 Jul 2017 15:07:41 -0700 (PDT) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0041.outbound.protection.outlook.com [104.47.40.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 23A1A21D1B2BC for ; Wed, 19 Jul 2017 15:07:40 -0700 (PDT) Received: from brijesh-build-machine.amd.com (165.204.77.1) by CY1PR12MB0150.namprd12.prod.outlook.com (10.161.173.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Wed, 19 Jul 2017 22:09:33 +0000 X-Original-To: edk2-devel@lists.01.org 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=pz0ixjWxm2iYFlziotvx+QmTC7xQ/Vu0uttwW/MblZU=; b=ImRKK2BrKTrtH4KoWQsUmVXoq7z044xSn9VztyYIO26j0KfhjKwIcFdsHWpCDUnOTazhn4yko3deLTxF5mFyVsv5DG3H/hWPRaN9mnvCR9R2inEkDY9kgMYsIm8LhXJj7osUez7IAtBJj3YQf1oLHumpCdA+I/iid/TQCLH4Zw8= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=amd.com; From: Brijesh Singh To: edk2-devel@lists.01.org Date: Wed, 19 Jul 2017 18:09:10 -0400 Message-Id: <1500502151-13508-3-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500502151-13508-1-git-send-email-brijesh.singh@amd.com> References: <1500502151-13508-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR02CA0012.namprd02.prod.outlook.com (10.168.209.150) To CY1PR12MB0150.namprd12.prod.outlook.com (10.161.173.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ce0b16f-e56c-446d-9363-08d4cef2d66e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR12MB0150; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 3:InpXBJ/sl33eK+vshxiCOlAG+aqrgvodltcScH2ijfR1GK/d0SeZfEqR3Js+qFrarMYptEByYtqxCFfCRX7zeHEY7OnZxLsOMh5P3ahuZ4G/iJD1OiVwOrdUN6XyK0Wn7cJJqxDgHW0ITrRaONKa25tYixG0Jq4hZ7Ru8hfC+JzETttVapld92Ax+llGOKZpwYe6zkcFPz0DyfSRvETdftCyX8xwr/xVzvJ8oT9Irh7r4tLnl6GTE3SGeqcs3EZof1gXLU+rTtBz9FPAn80q2hvlBtE7S3Yir/RDgIoAGl0yZGKsMy2+LvQOqddmBQa+Mfbp+7DN/uY8WVbeHatX6PLgJ1AEmYpkkJFab2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xW8= X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 20:94uMPUh4JSrVbuERHommA4U62QIWVc7RJZOGvaguInwLkoisI4DHmaXLJ+b6Wt0wrqrtryyxjVy202R8X3mlB7qCyFAcv6c7e1gsgtc9aZlTiYefIyIKWuM+6k+pW1It88k0sikggjE2QUQGdVYiR1R6C7Q8FkO01Q6pwHRgPzf1DZsD7GZ2nbgm0Qxhnn+ei1Qa01G24xr8eGTP5hN3E3ZeZYF9iPR/kV2Ngz7bkNiMyOZJt/aceCxawZMCu8Fny+qRqA06k+83KV1VS68JjKQbE0jktEWScXR0vB/63tQJAOfomGWhX44mlsDAVWAjXDahuOoGCgATjMBwICTXzshj9Rlqg4DmN9sjuepX22/dwol0nM2nlCoXZAMqw1mMYIZwcudWThSYa7mte0pMHYGJAqrbf6+157SMCZ8l8V/MIdAnvs1+49qXWlZQ05dTOrCwkFs/e/qOrMb+17UwzblEqpLyh0y//5CSpq1zzMWxr3U8NppjZENqahhaYwuB X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(767451399110)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR12MB0150; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR12MB0150; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0150; 4:ub1DRJyE7Z0dnJ8oUqrLFIut303KEc/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6La4DvT8x11sXa3RME5Apt2oJbwtUdWw+r4NGFLpd?= =?us-ascii?Q?27+L3aa5UMSaJxhcGbqBZcYHSjNXiXuvoLCDvmV8n9K55gSM6rlbKoZ0OM1i?= =?us-ascii?Q?ewmnidMhIrD2uYADJWwO92jTCuWptbk83Ohbmxa9tCgNY+qrPTtEd/KgjUog?= =?us-ascii?Q?xsNso6lnWuvOiYoVdnrA0uLc+JsNVGWgBW8CO1y09C/9m8Hpfi/c7U6Yu4Oa?= =?us-ascii?Q?mITLqC079+YIQKRKXrSrRo9eZJXUGq1BqERVr11fU17GsR0giSsivaMt/20Z?= =?us-ascii?Q?CAuz5zwksKO+8Eca78aLwElDyNMkapUH35SYQ82ACq/xlsxUzSGVGNVR21Yv?= =?us-ascii?Q?BgDi8K981ergXgwXB++hPnKbGf+wwHvsrMfIA4k5ixxcfdi3oW1E30iccP9f?= =?us-ascii?Q?0jkkr4tIt0PwTMJ1BkNzpRJrFs4DEUknYwN/P9DHbs?= X-Forefront-PRVS: 0373D94D15 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39410400002)(39860400002)(39850400002)(39400400002)(39450400003)(39840400002)(2361001)(50986999)(2906002)(6916009)(8676002)(478600001)(5660300001)(33646002)(81166006)(76176999)(53936002)(7736002)(50466002)(2351001)(305945005)(53416004)(48376002)(54906002)(42186005)(4326008)(189998001)(36756003)(6486002)(5003940100001)(25786009)(110136004)(6116002)(575784001)(50226002)(86362001)(47776003)(3846002)(38730400002)(6666003)(66066001)(2950100002)(7350300001)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0150; H:brijesh-build-machine.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0150; 23:CC/Q3nPxqFcLZyA9LBnw1VA5YHnMoDZaVSGvWHT8h?= =?us-ascii?Q?D+liZAaydV3fbqLBsEvPHRcxJXZwQL8L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CY1PR12MB0150; 20:SzhNkviff5w6qDM6ZsQCbtGLHFC6UbswEUmmvMxmqYLgzEhppWRI3YlPwhgEDRMhFm7+pLtc0uxhnzUaiqZw2Zt1QQt3yHBm7pHPuuRyjpRh8HFoev1h+i48UWPWV8Bz0n2d1fiBqN7VA6MJwGQTuBL4z+Nqaxdexcp/wG1Yjr9Jleg2xnhQddRxW8HWwzRDmcgZuiWP3M/oSVmgZE/wKPgtE+nJwocQX/IEyAAteDGqRcqGIIX6xJsDTPD4AKsD X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2017 22:09:33.3585 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0150 Subject: [edk2] [RFC v1 2/3] OvmfPkg/VirtioLib: Add IOMMU_PLATFORM support 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: , Cc: Tom Lendacky , "Michael S . Tsirkin" , Jordan Justen , Jason Wang , Laszlo Ersek Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" When iommu_platform is set, use IOMMU protocols buffer allocation and free routines to allocate and free vring buffer (guest-host communication buffer). Cc: Jordan Justen Cc: Laszlo Ersek Cc: Jason Wang Cc: Michael S. Tsirkin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh --- OvmfPkg/Library/VirtioLib/VirtioLib.inf | 1 + OvmfPkg/VirtioBlkDxe/VirtioBlk.inf | 1 + OvmfPkg/VirtioGpuDxe/VirtioGpu.inf | 1 + OvmfPkg/VirtioNetDxe/VirtioNet.inf | 1 + OvmfPkg/VirtioRngDxe/VirtioRng.inf | 1 + OvmfPkg/VirtioScsiDxe/VirtioScsi.inf | 1 + OvmfPkg/Include/IndustryStandard/Virtio095.h | 1 + OvmfPkg/Include/Library/VirtioLib.h | 20 ++++ OvmfPkg/Library/VirtioLib/VirtioLib.c | 96 +++++++++++++++++++- 9 files changed, 121 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/Library/VirtioLib/VirtioLib.inf b/OvmfPkg/Library/Virt= ioLib/VirtioLib.inf index fb5897a88ecf..6629d0d52b04 100644 --- a/OvmfPkg/Library/VirtioLib/VirtioLib.inf +++ b/OvmfPkg/Library/VirtioLib/VirtioLib.inf @@ -26,6 +26,7 @@ [Sources] =20 [Packages] MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec OvmfPkg/OvmfPkg.dec =20 [LibraryClasses] diff --git a/OvmfPkg/VirtioBlkDxe/VirtioBlk.inf b/OvmfPkg/VirtioBlkDxe/Virt= ioBlk.inf index d5975b74eb05..53d5a164a0b8 100644 --- a/OvmfPkg/VirtioBlkDxe/VirtioBlk.inf +++ b/OvmfPkg/VirtioBlkDxe/VirtioBlk.inf @@ -26,6 +26,7 @@ [Sources] =20 [Packages] MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec OvmfPkg/OvmfPkg.dec =20 [LibraryClasses] diff --git a/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf b/OvmfPkg/VirtioGpuDxe/Virt= ioGpu.inf index 04bc2964c223..a6d4cbbd191a 100644 --- a/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf +++ b/OvmfPkg/VirtioGpuDxe/VirtioGpu.inf @@ -31,6 +31,7 @@ [Sources] =20 [Packages] MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec OvmfPkg/OvmfPkg.dec =20 [LibraryClasses] diff --git a/OvmfPkg/VirtioNetDxe/VirtioNet.inf b/OvmfPkg/VirtioNetDxe/Virt= ioNet.inf index a855ad4ac154..2b8996ed366e 100644 --- a/OvmfPkg/VirtioNetDxe/VirtioNet.inf +++ b/OvmfPkg/VirtioNetDxe/VirtioNet.inf @@ -42,6 +42,7 @@ [Sources] =20 [Packages] MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec OvmfPkg/OvmfPkg.dec =20 [LibraryClasses] diff --git a/OvmfPkg/VirtioRngDxe/VirtioRng.inf b/OvmfPkg/VirtioRngDxe/Virt= ioRng.inf index 471beb37bc7f..898bfb7158c2 100644 --- a/OvmfPkg/VirtioRngDxe/VirtioRng.inf +++ b/OvmfPkg/VirtioRngDxe/VirtioRng.inf @@ -26,6 +26,7 @@ [Sources] =20 [Packages] MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec OvmfPkg/OvmfPkg.dec =20 [LibraryClasses] diff --git a/OvmfPkg/VirtioScsiDxe/VirtioScsi.inf b/OvmfPkg/VirtioScsiDxe/V= irtioScsi.inf index 75581123930b..082f9a12bb09 100644 --- a/OvmfPkg/VirtioScsiDxe/VirtioScsi.inf +++ b/OvmfPkg/VirtioScsiDxe/VirtioScsi.inf @@ -27,6 +27,7 @@ [Sources] =20 [Packages] MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec OvmfPkg/OvmfPkg.dec =20 [LibraryClasses] diff --git a/OvmfPkg/Include/IndustryStandard/Virtio095.h b/OvmfPkg/Include= /IndustryStandard/Virtio095.h index 6bf77cb32075..c81b29c6d9d0 100644 --- a/OvmfPkg/Include/IndustryStandard/Virtio095.h +++ b/OvmfPkg/Include/IndustryStandard/Virtio095.h @@ -154,6 +154,7 @@ typedef struct { VRING_AVAIL Avail; VRING_USED Used; UINT16 QueueSize; + VOID *Iommu; } VRING; =20 // diff --git a/OvmfPkg/Include/Library/VirtioLib.h b/OvmfPkg/Include/Library/= VirtioLib.h index 5badfb32917f..92a3d5e10f7b 100644 --- a/OvmfPkg/Include/Library/VirtioLib.h +++ b/OvmfPkg/Include/Library/VirtioLib.h @@ -17,10 +17,30 @@ #ifndef _VIRTIO_LIB_H_ #define _VIRTIO_LIB_H_ =20 +#include #include =20 #include =20 +/** + + Configure a virtio ring to use IOMMU protocol + + This function tells vring to use the given IOMMU protocol interface + for allocating and freeing the vring buffer (this guest-host communicati= on + area) + + @param[in] The virtio ring to set up. + + @param[in] IOMMU protocol to use. + +**/ +VOID +EFIAPI +VirtioRingUseIommu ( + IN VRING *Ring, + IN EDKII_IOMMU_PROTOCOL *Iommu + ); =20 /** =20 diff --git a/OvmfPkg/Library/VirtioLib/VirtioLib.c b/OvmfPkg/Library/Virtio= Lib/VirtioLib.c index 845f206369a3..d8fdb6310d52 100644 --- a/OvmfPkg/Library/VirtioLib/VirtioLib.c +++ b/OvmfPkg/Library/VirtioLib/VirtioLib.c @@ -26,6 +26,69 @@ =20 /** =20 + Configure a virtio ring to use IOMMU protocol + + This function tells vring to use the given IOMMU protocol interface + for allocating and freeing the vring buffer (this guest-host communicati= on + area) + + @param[in] The virtio ring to set up. + + @param[in] IOMMU protocol to use. + +**/ +VOID +EFIAPI +VirtioRingUseIommu ( + IN VRING *Ring, + IN EDKII_IOMMU_PROTOCOL *Iommu + ) +{ + Ring->Iommu =3D Iommu; +} + +/** + + Allocate vring (the guest-host communication area) + + This function checks if host has requested the Iommu support then it uses + the IOMMU protocol allocator for allocating vring otherwise uses Allocat= ePages + +**/ +STATIC +VOID * +VirtioRingAllocatePages ( + IN VRING *Ring + ) +{ + UINT32 NumPages; + EDKII_IOMMU_PROTOCOL *Iommu; + + NumPages =3D Ring->NumPages; + Iommu =3D (EDKII_IOMMU_PROTOCOL *)Ring->Iommu; + + // + // If IOMMU protocol is set then use IOMMU allocator otherwise + // fallback to standard allocator + // + if (Iommu) { + EFI_STATUS Status; + VOID *Buffer; + + Status =3D Iommu->AllocateBuffer (Iommu, 0, EfiBootServicesData, + NumPages, &Buffer, EDKII_IOMMU_ATTRIBUTE_MEMORY_CA= CHED); + if (EFI_ERROR (Status)) { + return NULL; + } + + return Buffer; + } + + return AllocatePages (NumPages); +} + +/** + Configure a virtio ring. =20 This function sets up internal storage (the guest-host communication are= a) @@ -76,7 +139,7 @@ VirtioRingInit ( EFI_PAGE_SIZE); =20 Ring->NumPages =3D EFI_SIZE_TO_PAGES (RingSize); - Ring->Base =3D AllocatePages (Ring->NumPages); + Ring->Base =3D VirtioRingAllocatePages (Ring); if (Ring->Base =3D=3D NULL) { return EFI_OUT_OF_RESOURCES; } @@ -118,6 +181,35 @@ VirtioRingInit ( return EFI_SUCCESS; } =20 +/** + + Free vring (the guest-host communication area) + + This function checks if host has requested the Iommu support then it uses + the IOMMU protocol free callback otherwise uses FreePages + +**/ +STATIC +VOID +VirtioRingFreePages ( + IN VRING *Ring + ) +{ + EDKII_IOMMU_PROTOCOL *Iommu; + + Iommu =3D (EDKII_IOMMU_PROTOCOL *)Ring->Iommu; + + // + // If IOMMU protocol is set then use IOMMU FreeBuffer otherwise + // fallback to FreePages + // + if (Iommu) { + Iommu->FreeBuffer (Iommu, Ring->NumPages, Ring->Base); + } else { + FreePages (Ring->Base, Ring->NumPages); + } +} + =20 /** =20 @@ -136,7 +228,7 @@ VirtioRingUninit ( IN OUT VRING *Ring ) { - FreePages (Ring->Base, Ring->NumPages); + VirtioRingFreePages (Ring); SetMem (Ring, sizeof *Ring, 0x00); } =20 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Fri Dec 27 04:03:41 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1500502187071337.84861621705227; Wed, 19 Jul 2017 15:09:47 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0EA112095D8C5; Wed, 19 Jul 2017 15:07:42 -0700 (PDT) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0042.outbound.protection.outlook.com [104.47.40.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CECF821D1B2BD for ; Wed, 19 Jul 2017 15:07:40 -0700 (PDT) Received: from brijesh-build-machine.amd.com (165.204.77.1) by CY1PR12MB0150.namprd12.prod.outlook.com (10.161.173.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Wed, 19 Jul 2017 22:09:34 +0000 X-Original-To: edk2-devel@lists.01.org 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=3v4lgPM+b5avXPKzmqom88niOouQFy2yfIbzM9ZoFTA=; b=X3O7vL3y9gWgICzCD76+kBDHvZsuc5oQR6LgorX2T0BBBe44G3uYkN7NESmBZaWdfSUIVNLzJCGoj4yPiiq7+w2+4qlJ16qQZTN2dhw6zcfNSeiJJPB4iS4kHbr7W1d6WqIlky9J17kfg3bTXGCtmLSn+ZVWmTh7s2tXgfVTUB0= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=amd.com; From: Brijesh Singh To: edk2-devel@lists.01.org Date: Wed, 19 Jul 2017 18:09:11 -0400 Message-Id: <1500502151-13508-4-git-send-email-brijesh.singh@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500502151-13508-1-git-send-email-brijesh.singh@amd.com> References: <1500502151-13508-1-git-send-email-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR02CA0012.namprd02.prod.outlook.com (10.168.209.150) To CY1PR12MB0150.namprd12.prod.outlook.com (10.161.173.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a2faf2f7-9800-42bf-3756-08d4cef2d71a X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR12MB0150; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 3:2Ts17Rz+PUFNipPlOhgB9yAffeDTL95x/I2Ma40/2DbtyvezcWtJfDLKZMrU95LBo+bapF2OZLeGU6LGGo4lbOOsCCf+RC8AhwB20imEZ6rjfW8IeJGy+WSncLA7QZal+1iNCEWfP9VZhP/7eVb4rtnT9kYo1nzszVz/KMRNBxnGxRy37KtbUKUu+SAjA6a1rPHpEw0c4Pwyk8SU37BMJ0da4sRZrGNqwngVgpCRYv2X+VnwF0jj+swjtD35U3r81EakkMQYM/LJ6syj5scJQiHZUo0FA9t+GYGFWjAC9Yxq33hUj1R+PODIYo23+TMynOEzBrvHoneS2rlpARZl7sI01niouklu050I6NVTPvtpKdBMLqgbb44VElq9l4PqnH0L17OwHq4Mbb+gmc9sRagyp7bzuxrD9TV4d6O/rIWYWbhn/NlVPOixtywY+TwlkJIeBAfuz8xjEpOPlBjs4Uip7f4MDl/G+1Xv1CjQHhAkpcP2Hwk9m6BQNTtGiYMP5SSBG9giMVDyeNcCrxE2V8pDSXFnRgGAdYRWOW6M5xZIIqhjV8heDFMsTJHuMblMiqsUDOn93/0uP0lMPq+8CreV+XQD6JLpDyEQ77mU1AWU03pfnRxtwBSclFIWPQroo8vg5Z3jjU+PULxSLLrCeGHb0vsOMC3sGMaoMkBgUmQOxCd4NMPupvGWQZlVVc0fmUhv2QpnFSu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k9beb0Xhh9K4xKSOBonxPW1Xg18Ndl5NpPtfjb47H+1cC3jGCFDSQiflZjnN1YWqaHZ9VVeeLd8Adp9vdJ1ZuBygsYc10C8zhd1w6qsMH3vU1DbXBbdttfyWhIeHTa2gV/eGbWl2LfTh/uTgIkTLCG+A29nCroqotPFeA8ZYAvifhCMInuuvXlxOWi2HJNIDxVTPH+gw9VcXJKIrMZVb6 X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(131327999870524)(767451399110)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR12MB0150; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR12MB0150; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0150; 4:KDmtkBCaWCW1frV6f9UF9OqXAkGwNxbODISHiq/nrC?= =?us-ascii?Q?A1hkKuHBGJPqnJJgNI2wxNOl7v0z1fkwV6Z6FuW4nGR0twZjDFMh68NMqruL?= =?us-ascii?Q?qsCm/QqE86DANCdgCUCW0nzzE5YR+retbdT49ImRr0hTIdQzSfpGBmnH30/K?= =?us-ascii?Q?Zn02kWGYRtU2AjoseDEDujMkG4v6OT7JyyOb9iG+TAEIVvCI6yecpQU4kTaB?= =?us-ascii?Q?JliiL2KOs/WO5pJjoiRjBX3jMV4ZCAllIq/LEBOwmXkpJ54J41THtt5kTiW/?= =?us-ascii?Q?T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60qlzSmibBr+XPCOr?= =?us-ascii?Q?Fnmqi0gXIYewyczeE19opi7L3evUdgkGKommRnxeKflHXL1Pk3j8gc9BK7Xz?= =?us-ascii?Q?SRz8XfdBqvKyGwQH0PNFVMMOe7nZrVW2QjI0x9MuRdXjfB7saoADfr4Gn3u4?= =?us-ascii?Q?3GiHhrWW6jc9u3SU0lERNbQ8nBBIlKdftdQgcib3tvEJxLdKybg19TvG75QN?= =?us-ascii?Q?i9+dU6UZPis7Pq/4Jq17yd9PA=3D?= X-Forefront-PRVS: 0373D94D15 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39410400002)(39860400002)(39850400002)(39400400002)(39450400003)(39840400002)(2361001)(50986999)(2906002)(6916009)(8676002)(478600001)(5660300001)(33646002)(81166006)(76176999)(53936002)(7736002)(50466002)(2351001)(305945005)(53416004)(48376002)(54906002)(42186005)(4326008)(189998001)(36756003)(6486002)(5003940100001)(25786009)(110136004)(6116002)(575784001)(50226002)(86362001)(47776003)(3846002)(38730400002)(6666003)(66066001)(2950100002)(7350300001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0150; H:brijesh-build-machine.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0150; 23:gvgYSD5wj+XJbB0FzEWZzn6uBinSoUiIPeUMeEiOt?= =?us-ascii?Q?pJmlrRX1JCxIxQOtJ4hbu64NyGLLgIGe2pVPzFKg+8md9zp6WQaZGHYhThhW?= =?us-ascii?Q?7OAGbcHZX4wg0TOWINqV4ZLXcpWT+SKR20h0xso/pZeirjjOVDuxZ6cWi9gG?= =?us-ascii?Q?Ai+d7zKklBBwJIjBtsBLwWrEOJv2sTiPvZnQMc/azMux2HtBLA0CNoIr39+Q?= =?us-ascii?Q?KCXwBeFalGF/lordbi3XZt+YWuksY/Wl6tq8H0CqsmOWCEZuXgMjsWmuxpxv?= =?us-ascii?Q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q/gILrSQ+ARc9YlGZ?= =?us-ascii?Q?jY9RJsKL9FYLtU=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR12MB0150; 6:9kLBaxgSH7ixXYaXN4TV9AkSXf6m6QlCe9xqlBZS7m?= =?us-ascii?Q?eybkVJDKYCH64DFssk+g9HOVX85vOh9Y3GK24SJV257LR42cPw62WltLWEE8?= =?us-ascii?Q?dhs80YWCIinHeaJIinTXO1juk/5yUA/XecgBlW78rPcn70SPvuj1jIsBsx56?= =?us-ascii?Q?aUjnHMEzrG11Ck5mLSfgV4vCEdGDWvgUD71YkwVlnVwG4u975a/c9yWh+6U7?= =?us-ascii?Q?XR8dYBtcXf3Y+n3LwDr/lIYVmePoNjV2AcfojpBZxsKMh2E0A4Ikp6VVf8RL?= =?us-ascii?Q?jmTLjDqDXz1guQ0tghvFQpkope97A07cVF6ltvz+p4VvoLHEh4hgGgII7bEo?= =?us-ascii?Q?zatA+KF7rI1ndH5fwxa5cfbIpwez6Lxpmq/W8VPd6V1HOHcyOtiFS5krom1/?= =?us-ascii?Q?cKHFFFKUtZ4hMs9CzmMVqa9tzI466TLpYy0lQ3sOqq+31V7xKCagaoGBvwJZ?= =?us-ascii?Q?DUAYUDqH+XxS4uZ2DQkP2H1jhjgAFF+jpjgfrnFrVS5ngOMDcZDKp1WiSu1p?= =?us-ascii?Q?0eWwbUGL/VGB+thVgcMNFnre/g4BRDgOraFHc2DDOwRWPmIzVE0ArRcoY5pe?= =?us-ascii?Q?4AwEy00zA0BqNykPBMli3mdm6dfMMbRH6CxbzHKbYnAs4pZjZa+s5Oi4Fi8X?= =?us-ascii?Q?u0bgJBqdL/qUM2/5i9a2tileM/AZLnSdKC7augX/lHmDfjzm9AwfQ1YBjzj+?= =?us-ascii?Q?CQQJXfYkeGVZqGgfLkdFMStNlhLFKFtn7w0DmShC+8NDllqCVuiMifbT6l08?= =?us-ascii?Q?TxP3Xzy1RQJSxIxvdAkMVLg327MKUZl0zHCLzTc398omgRvZmz8kDX9Ee5DR?= =?us-ascii?Q?5f8HoQhFrAoGVcB8w0OhOqrvQtTNXHNAzjuxOaxt2LBhks10VbacWY1s7iIn?= =?us-ascii?Q?mt6lMERVhz+mW+nEkrcJumweiEWkeKgg9cXnYxUnNWJecIfqC0biT3aRkZzO?= =?us-ascii?Q?Ix43TIQVjJA6H/T5D14khYLSVSZhVmZy+mao1fucJepxmd9J7ekCfBtPbhtd?= =?us-ascii?Q?woWlYTZiA+biIppesjBEmd?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 5:EfhkheiIwOOOQp8aftRUZIgIcXwGGTfcX3ILKKCpw1fTUdq3zbYfF8Y9/O7bnWSLAVD0DOm+22epX+2HsMwK2vjuFD1gj+Et74ID5c5RIIwWJgteuF1wum+IpiHkuac+kJ7ldRzfWwky0lTD0CxCpo4f2+qokwEy8U4RQdHSF8MDpcgvyiuoWoZGYtC0jHfW8+4ZQhcJ0zYY3iIxI29A/9ZG+h5+ZfykZ9/ikbG8iltqRcrARWyiVyPi6Vgv+oQhCiohEr+1HzlJWdzBGWV50qifQbZ+sPTeXvjQzN9CR12bscLq3YmE3ddVQT12cuCeHZfWDbOwaklK+xaC0LlQYmg+XoFaVV9TqpeJgTkh9FH+54edroyOi8dHyv1cVs6vveFC2ksWMKGTO1WRO/eryNVJxPSQL/Oq4y7WGKQAfun1leg9AB+f+7ETeN2xKPopD3j1x1yxt4w3hvf+v3pYZU/6bcvG4eJoBUjXGWnkKa+To8FHcyDlsddj6CculWC6; 24:iTDSL/6YCU7PvgcdNiZMafi6tKSe3LIysvCQmSU91M364gFKQZp6deecRlQq9JZVW8D6CsNmdHWwWN+ET1VuzBvck0Va4KTGkDh/d/X+cnc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0150; 7:pjcXk7zkeg1lFxpqbwAs/LsWpVQlT2bTkHQ1lfU5edRBHoTNRejKaLPlElHKRzEP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ange-CrossTenant-OriginalArrivalTime: 19 Jul 2017 22:09:34.4623 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0150 Subject: [edk2] [RFC v1 3/3] OvmfPkg/VirtioBlkDxe: Add VIRITO_F_IOMMU_PLATFORM support 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: , Cc: Tom Lendacky , "Michael S . Tsirkin" , Jordan Justen , Jason Wang , Laszlo Ersek Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" When VIRTIO_F_IOMMU_PLATFORM feature bit in set then try locating IOMMU protocol. If IOMMU protocol is available, then use the IOMMU protocols functions to allocate, free, map and unmap the host buffer to device buffer. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Jason Wang Cc: Michael S. Tsirkin Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brijesh Singh --- OvmfPkg/VirtioBlkDxe/VirtioBlk.inf | 4 + OvmfPkg/VirtioBlkDxe/VirtioBlk.c | 125 ++++++++++++++++++-- 2 files changed, 118 insertions(+), 11 deletions(-) diff --git a/OvmfPkg/VirtioBlkDxe/VirtioBlk.inf b/OvmfPkg/VirtioBlkDxe/Virt= ioBlk.inf index 53d5a164a0b8..12577c5f700f 100644 --- a/OvmfPkg/VirtioBlkDxe/VirtioBlk.inf +++ b/OvmfPkg/VirtioBlkDxe/VirtioBlk.inf @@ -41,3 +41,7 @@ [LibraryClasses] [Protocols] gEfiBlockIoProtocolGuid ## BY_START gVirtioDeviceProtocolGuid ## TO_START + gEdkiiIoMmuProtocolGuid ## SOMETIMES_CONSUMES + +[Depex] + gEdkiiIoMmuProtocolGuid OR gIoMmuAbsentProtocolGuid diff --git a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c b/OvmfPkg/VirtioBlkDxe/Virtio= Blk.c index 3ce72281c204..f78052c4ecc0 100644 --- a/OvmfPkg/VirtioBlkDxe/VirtioBlk.c +++ b/OvmfPkg/VirtioBlkDxe/VirtioBlk.c @@ -23,6 +23,8 @@ =20 **/ =20 +#include + #include #include #include @@ -33,6 +35,8 @@ =20 #include "VirtioBlk.h" =20 +STATIC EDKII_IOMMU_PROTOCOL *mIoMmuProtocol; + /** =20 Convenience macros to read and write region 0 IO space elements of the @@ -247,13 +251,49 @@ SynchronousRequest ( ) { UINT32 BlockSize; - volatile VIRTIO_BLK_REQ Request; - volatile UINT8 HostStatus; + volatile VIRTIO_BLK_REQ LocalRequest; + volatile UINT8 LocalHostStatus; + volatile VIRTIO_BLK_REQ *Request; + volatile UINT8 *HostStatus; DESC_INDICES Indices; + VOID *IommuBuffer; + UINT32 NumPages; + VOID *Mapping; + EFI_STATUS Status; + EFI_PHYSICAL_ADDRESS DeviceBuffer; =20 BlockSize =3D Dev->BlockIoMedia.BlockSize; =20 // + // set NumPages to suppress incorrect compiler/analyzer warnings + // + NumPages =3D 0; + + // + // If IOMMU platform is enabled for this device then allocate Request and + // HostStatus variable dynamically using IOMMU allocator + // + if (mIoMmuProtocol) { + EFI_STATUS Status; + + NumPages =3D (UINT32)EFI_SIZE_TO_PAGES (sizeof (*Request) + sizeof (*H= ostStatus)); + Status =3D mIoMmuProtocol->AllocateBuffer (mIoMmuProtocol, 0, + EfiBootServicesData, NumPages, &IommuBuffe= r, + EDKII_IOMMU_ATTRIBUTE_MEMORY_CACHED); + if (EFI_ERROR (Status)) { + return Status; + } + + Request =3D IommuBuffer; + HostStatus =3D IommuBuffer + sizeof(*Request); + } else { + Request =3D &LocalRequest; + HostStatus =3D &LocalHostStatus; + IommuBuffer =3D NULL; + Mapping =3D NULL; + } + + // // ensured by VirtioBlkInit() // ASSERT (BlockSize > 0); @@ -268,18 +308,18 @@ SynchronousRequest ( // Prepare virtio-blk request header, setting zero size for flush. // IO Priority is homogeneously 0. // - Request.Type =3D RequestIsWrite ? + Request->Type =3D RequestIsWrite ? (BufferSize =3D=3D 0 ? VIRTIO_BLK_T_FLUSH : VIRTIO_BLK_= T_OUT) : VIRTIO_BLK_T_IN; - Request.IoPrio =3D 0; - Request.Sector =3D MultU64x32(Lba, BlockSize / 512); + Request->IoPrio =3D 0; + Request->Sector =3D MultU64x32(Lba, BlockSize / 512); =20 VirtioPrepare (&Dev->Ring, &Indices); =20 // // preset a host status for ourselves that we do not accept as success // - HostStatus =3D VIRTIO_BLK_S_IOERR; + *HostStatus =3D VIRTIO_BLK_S_IOERR; =20 // // ensured by VirtioBlkInit() -- this predicate, in combination with the @@ -290,7 +330,7 @@ SynchronousRequest ( // // virtio-blk header in first desc // - VirtioAppendDesc (&Dev->Ring, (UINTN) &Request, sizeof Request, + VirtioAppendDesc (&Dev->Ring, (UINTN) Request, sizeof *Request, VRING_DESC_F_NEXT, &Indices); =20 // @@ -308,6 +348,42 @@ SynchronousRequest ( ASSERT (BufferSize <=3D SIZE_1GB); =20 // + // When IOMMU platform is enabled, map the host buffer to device + // + if (mIoMmuProtocol) { + EDKII_IOMMU_OPERATION Operation; + UINTN NumBytes; + + NumBytes =3D BufferSize; + + if (RequestIsWrite) { + Operation =3D EdkiiIoMmuOperationBusMasterRead; + } else { + Operation =3D EdkiiIoMmuOperationBusMasterWrite; + } + + Status =3D mIoMmuProtocol->Map (mIoMmuProtocol, Operation, (VOID *)B= uffer, + &NumBytes, &DeviceBuffer, &Mapping); + if (EFI_ERROR (Status)) { + Status =3D EFI_DEVICE_ERROR; + goto HandleExit; + } + + // + // Verify that we are able to map the required size + // + if (NumBytes < BufferSize) { + DEBUG ((DEBUG_ERROR, "%a: request %d got %d\n", __FUNCTION__, + BufferSize, NumBytes)); + + Status =3D EFI_DEVICE_ERROR; + mIoMmuProtocol->Unmap (mIoMmuProtocol, Mapping); + goto HandleExit; + } + Buffer =3D (VOID *)DeviceBuffer; + } + + // // VRING_DESC_F_WRITE is interpreted from the host's point of view. // VirtioAppendDesc (&Dev->Ring, (UINTN) Buffer, (UINT32) BufferSize, @@ -318,7 +394,7 @@ SynchronousRequest ( // // host status in last (second or third) desc // - VirtioAppendDesc (&Dev->Ring, (UINTN) &HostStatus, sizeof HostStatus, + VirtioAppendDesc (&Dev->Ring, (UINTN) HostStatus, sizeof *HostStatus, VRING_DESC_F_WRITE, &Indices); =20 // @@ -326,11 +402,23 @@ SynchronousRequest ( // if (VirtioFlush (Dev->VirtIo, 0, &Dev->Ring, &Indices, NULL) =3D=3D EFI_SUCCESS && - HostStatus =3D=3D VIRTIO_BLK_S_OK) { - return EFI_SUCCESS; + *HostStatus =3D=3D VIRTIO_BLK_S_OK) { + Status =3D EFI_SUCCESS; + goto HandleExit; } =20 - return EFI_DEVICE_ERROR; + Status =3D EFI_DEVICE_ERROR; + +HandleExit: + if (Mapping) { + mIoMmuProtocol->Unmap (mIoMmuProtocol, Mapping); + } + + if (IommuBuffer) { + mIoMmuProtocol->FreeBuffer (mIoMmuProtocol, NumPages, IommuBuffer); + } + + return Status; } =20 =20 @@ -692,6 +780,21 @@ VirtioBlkInit ( } } =20 + // + // If IOMMU_PLATFORM feature is requested then try to locate IOMMU + // protocol before acking that we support IOMMU_PLATFORM feature + // + if (Features & VIRTIO_F_IOMMU_PLATFORM) { + Status =3D gBS->LocateProtocol (&gEdkiiIoMmuProtocolGuid, NULL, (VOID = **)&mIoMmuProtocol); + if (EFI_ERROR (Status)) { + DEBUG ((DEBUG_ERROR, "%a: Failed to locate IOMMU protocol\n", __FUNC= TION__)); + goto Failed; + } + + Features &=3D VIRTIO_F_IOMMU_PLATFORM; + VirtioRingUseIommu (&Dev->Ring, mIoMmuProtocol); + } + Features &=3D VIRTIO_BLK_F_BLK_SIZE | VIRTIO_BLK_F_TOPOLOGY | VIRTIO_BLK= _F_RO | VIRTIO_BLK_F_FLUSH | VIRTIO_F_VERSION_1; =20 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel