From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0082.outbound.protection.outlook.com [104.47.40.82]) by dpdk.org (Postfix) with ESMTP id BCDBD388F for ; Tue, 6 Jun 2017 12:38:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=q4tp0lBbUkqhp4LT6KuiHtY95xI3F5++pzcxoDwINKI=; b=DEIYvpWz5jDgx8Wjjk+bWZrSwLeY4sBbolLOcYlBVy8P4nFDZT5DXYWmoTk92gLpYjkoo+l6tJhBXUXw9gBc4onsnEgPee8U6QTg18jGEXYYhabgj64X9nqUkyCL5DuNA17uKP+T1y8xBysIhmGWTDmiHn9ZuMF+pSJJnDrYbSk= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (122.167.102.185) by BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Tue, 6 Jun 2017 10:38:30 +0000 Date: Tue, 6 Jun 2017 16:08:16 +0530 From: Jerin Jacob To: Bruce Richardson Cc: santosh , thomas@monjalon.net, dev@dpdk.org, hemant.agrawal@nxp.com Message-ID: <20170606103815.GA20333@jerin> References: <20170524161101.22863-1-santosh.shukla@caviumnetworks.com> <79f1e8ae-d2cc-e49e-a17d-73c7185b26f8@caviumnetworks.com> <20170602092735.GA51388@bricha3-MOBL3.ger.corp.intel.com> <20170606095719.GA50888@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170606095719.GA50888@bricha3-MOBL3.ger.corp.intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [122.167.102.185] X-ClientProxiedBy: BMXPR01CA0012.INDPRD01.PROD.OUTLOOK.COM (10.174.214.150) To BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PR0701MB1721: X-MS-Office365-Filtering-Correlation-Id: b612b21c-62d3-4103-a0da-08d4acc82dc2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 3:U7khocy9DhFtfRAXfmmJ7iHlraWyVVX9QOMS2mnsR2o8jTxkI5oKEG1joEwirDJMXzeI/qkG2SWURSRNsFjuc+g567n8RR48GZLBLNwLUATeMoBFwOLIWzTfccfin3SRJ2qmlYFcptj2fdOgaxDzHy58wvPlY3/qBK3taj+RTQ77wqBJ/OE0aJ0bT5vFKPoZB58SJKRq12I5y7t97LAaVyw2eHz5z2OeuKvyxOMz1J2WlJIlSKBCPhudkntBR1zBxLUjPGebcDepGm6HCwyHmfXsGnnlSs2IN/uu8LzGWFxgaVXOIC6OZ9/DHQOYQdOXRN9ZRSOaJKFbDTRXnMRlJw==; 25:WhtzIvVcI1G/iiFcZ68X1LVBV7Ge0UqXnSMIcqwiHvltMRGVz4vMP98fVt7mCBp4zOLWtQIPFHOXkBbAOpC+hwg+eopef3gdf5pTAphXEGDN8upWl+X+ZG9C56GJX8JamqUV/7SqDW/LFpO562G8AjcigZFYALHFF1vGH3rBqahadMFqgz2wb0e08it7O4NP6MnIxbfpn0biVanJ6gISEuG+9rmj4DUDaSBYSfvZFgRoiyZ9ou1njkLTfnhuImusXBpYPsawJ5wLG6Gl2Z89oXCv7oPoM3b24DTGjRDYeaf+t/TebI79O2eOPh18GGrtxVXs1rR5VwHw/2oaeQXmehhvUyNp2UYAkNhkhpiQ/FdsnwKKhy/YWOTfuh70kROJSV04tnlTd6RL/g/ngId6Lco9c9LTJBjfPL/2JQR8+O+RWRpyFnkOQYqWFj3WLzkrFaeDl1dCyafkvWybqbsJ6NJWNhZo5ERgOaWs1CQH6U8= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 31:zR/BUI8/RDjYNIp8nSSKF8fqI8Qax/FXPM0j00m+PZpyWFoQmzTIc/S/gxvbMa1tcYD4XLuuTE5gA0q3pZxd840DZ6eufzq/ytASheGezklbWINE3brazmioUw4ox9UevkBDAVhe6HEfdh6rMH91vfbb457Yd7kW9hjMzUKITHWWjbPLUJfgceiM6U0pMizwssz1CsCRmWqNkjccz74YvT0dt3Bn9KLcC4O3yncHQs4=; 20:8uFX4eRFQp6BXK6ElT+hmeU+/qchGhCEdYN+XSe+gT1F4wmxly4uGza1XcrLaGD/BiIMX1gg6ckpv2w6gx93XdUm5PtJ1a1nmyBXfZuUekLR90jlx9tJyeOhJkPyEIHX/65GFN1H8CmzoPh6zmqjUYnfeDCF3G7s55udeiQ3n/0jpJYCDtA+3gwnkrE3A0MbWZgopKj7fbqyBAp82GuBPs04yPsxytGDUtWjM81hFPFu/4D+9wAGOf+VA4bNI8og+CjQiz9D/N08QMJW8a2pd72epclG0wNQgM10gXaR9EhEyb7qpTrW/tNgg5x1ifDqqjYfwp/YXJcKrlK+FXOiaF7z72CD1LJbS0BuLo18Vmo2xGbP/AwzeQCH0JejKxmhQp+Bt4MGoFrEjCL0qPrFTzjCN+mRtLmHaf7GIRc6ycpFLdsXYsV0e8VTzywiT9qknrOHpv44rXdxJb7sZZhDwH7EtGqt42mInatL4JPPrMU/vTo07Rh2a25OTUSE3Q9dM6VnNJkDa9WWiCTPCWW9tMS1PqpsmcgxfiKt7fGUHNkjk8451dGhYJjgLuA/sSr4tFzwd9ve4xQTiPxVvhFy+oh4lty1cAtVLtiURkTUNMs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY1PR0701MB1721; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1721; 4:dhBgR9Zz79WbJ5eYJjVreHcom6UNI4sOKe5gmNeX?= =?us-ascii?Q?65HzaA4fGaQUGk7bNdqOhFOmQXUw0Z8++pgoBSTS/p1lhwNRzqOoqTzqJddT?= =?us-ascii?Q?r4Z11lzcC/ataXwwPlYPoYnaNbdrn/O+o626YTKUKXk/UCcx0O/oErqbAt5L?= =?us-ascii?Q?ld5qpEBMMZ+FBNbcL2XSr/0IZKdw9gUkw6EDcOK/RIgxdUqAOOuIU2wR3pXs?= =?us-ascii?Q?Qc5NbKRKiyelJpm34pl+mnulHR+rvbKvj6EV4YpHCLCTw/wr90UyHLh33/lY?= =?us-ascii?Q?J932wib0H9/muFwvlLHwiToOAAsi1xdU2wItQmecZUQXqOZmFVbT1oKNH+e8?= =?us-ascii?Q?p92G5toiIOA3o1XW75jnc1nlwcO1YrGI8bmyzEkfJqwrYVDzo6vVQTgWQWqM?= =?us-ascii?Q?tJcAhYf7RLLykxQd108IXhT40Y97/2B2SvUCBqOx997KGkV/eVYjPIh6wW9o?= =?us-ascii?Q?wMWrxH8e4SxrCnQpa9XfFcAJ1dk8CPz6J43sZ+wgh95uisw/FeGBXjkPYlCD?= =?us-ascii?Q?uhpuSLY4jgrPmw2Osz3vpcJqBCWmYEMH6vKLktd+XhkEMGwjCNC2N4rbg+Zm?= =?us-ascii?Q?9xR0fQpNuNX11Q08UxADreiDdZqEL+feogNT/flq66Wwas4doZ7qfNfQ4sv3?= =?us-ascii?Q?mH/6wqg6FQrO9e2XnaZTsMuhnWDkYJIZ4CK+EtgiqKPcpv6B2RzHoXdv3cOy?= =?us-ascii?Q?SQ9sLofl4nmzKKjDAIsF1k3yJ1ZQ3QKLMADgQ/Z77LbFnjAc2zLD0+ek5RIi?= =?us-ascii?Q?crxfOSZvvdba5bRcRxPRIgSqXVrqEQD/V9R87csbC+bRFIsQZAQwZv3vhsiY?= =?us-ascii?Q?kcvDRFDNgEqKtBLuFdl4cFX5U6ZSAWj9FWENmsrBkQuXRU5F3+hIww17HzY5?= =?us-ascii?Q?vuSPONdmqoyxh0sTGgl+XCORxuESpg3m9Dk+CIrzISX6FFcOHwwsfPtfaefo?= =?us-ascii?Q?5XG2IDvTE77ayCvmP3OlherXtvzLcMcqt2zsSlVZnQl3iAmZp7G0dI5hAY1X?= =?us-ascii?Q?hrD26CjpU/2832x9VXnRxtnax3DZ04RdRannd++IUXKnaxuHyKUa4Sm/Lsg9?= =?us-ascii?Q?Y8Y1VRXB23xef/pARLnlX8tD25BHP45lUB1Jjchr20wc/oMqVd63XzpETnTh?= =?us-ascii?Q?/LTyuw8bRj+xKXokRrpaGstPb0i8DnFfhDHWhX10cVht7pmXzjd8vd4NW6P8?= =?us-ascii?Q?TrlH4S/IhjQRXTIAL4sQZBRGAf+zIowr/2//?= X-Forefront-PRVS: 033054F29A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39850400002)(39840400002)(39450400003)(377454003)(377424004)(24454002)(50466002)(72206003)(6496005)(6116002)(83506001)(4001350100001)(50986999)(76176999)(54356999)(25786009)(1076002)(561944003)(33716001)(3846002)(42186005)(6916009)(229853002)(6666003)(189998001)(23726003)(478600001)(2950100002)(42882006)(5660300001)(66066001)(38730400002)(47776003)(2906002)(8656002)(6246003)(33656002)(9686003)(110136004)(81166006)(93886004)(53936002)(8676002)(7736002)(4326008)(305945005)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1721; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1721; 23:dXFm940KRTiM+kcRKKD/EsX+EXQ5TDwjnDvFGKK?= =?us-ascii?Q?UuR0uzFBDHBnRLm6bG/hwUKtEis9y30N8ex53slEMrQZaGv8b+U9JkGqTumK?= =?us-ascii?Q?lcASFlmu+VaxGJEI7A7n1z+pqjMDZeo9APKHBUiiNx7+WGHL0csDBuddcw64?= =?us-ascii?Q?4Tw4z4TRKrQfzdRwfmNRKhsyGFe4uXZKwv8na1pse8qivc8WRZnWKPQqRatt?= =?us-ascii?Q?HsHZCaUg5KDcfzklCU0jYl70a+nMCYK3eVPGZwmCvKqhm71b7HkwOlQj85dF?= =?us-ascii?Q?BdkoLYnVsuLP5vHzDIHYcRWjN5yAb17KxnI5mWkE3eKTEtDkHHTB2ZHDAWsv?= =?us-ascii?Q?9l6XqU5gm+1EdZQA8fG/SoeSXWGrwr6mMJmYgcH+lPwspe/K1Z2hCUGZWgAo?= =?us-ascii?Q?0ff991sy6FOWEX4szFTFRE9BUw617kcpxzT74pphtRbpius6zhSWypRtUT3D?= =?us-ascii?Q?k4/bs9XF4/FBzg9S4lVoYzoPCLwxUnUWSq0ftClVJLNU/CKCD5f1w36jEcIg?= =?us-ascii?Q?syIen8Ut7o4Tg0l/7BhsqUmqlsDmqN2WNN6VGtEkI3c+d3rNRREbP/frSalP?= =?us-ascii?Q?2/DD1xPwmDlOiJiB5LABJ9WAu4lNOk7pe+fSZ3rfFYfYDDRxA8TMUBIkkxQW?= =?us-ascii?Q?CSYzi8L7d8bG2NYEI73pm7+1w1yfETJUzc8cJwmOhsq2SpBCfJqTj/p6OyMW?= =?us-ascii?Q?U0g8k0rew56IOEvyx3+rd6a3yrcnqarcoZ59DR7Q2IlHoL98MNx2l3876zBt?= =?us-ascii?Q?lk2l1eXDIxoLJwdtzhfHCRiCLalwJMBUL8bE15bsdEZt6tmT7diyaZlxlUru?= =?us-ascii?Q?rxEZeiOXhpQ0zfLELLCxeFpLFPT0lKKdtqqlwhQVPxLP+aHJ+0e/2zO6FyC3?= =?us-ascii?Q?MInuxeHbYaOsMCSI85AXG+jC8btfruDvXdat54CrAOouZk3jBtiIlVSHZoSz?= =?us-ascii?Q?FEXdufJYMv06zoAyvBaZ23ZXei2sQyEp5XP1EYzhieQ91WCBaiWRNN3Kg+KC?= =?us-ascii?Q?HuNw3Igp198aUfsMMgMdUVr6p5z7+Gx5uguiU+KNeEnhYNPPjqTB0IHukaUM?= =?us-ascii?Q?hSPthJZa52pDXCI40fiOls3SsY0SAkBX05SyHMIFgbqESO2DneCVFubtoEHO?= =?us-ascii?Q?amqKiDTXwtEbxQUWJcPgyr86z0VU+qhmTlk//bgAv6r53uU3H0ycjFwJDoGp?= =?us-ascii?Q?E+YTIu2P+I2d+wPS4yx/AlLLRDhUlwrSPEVbQ3litMtX48QfTlFYWoLgNhEg?= =?us-ascii?Q?xb8Jw+TeT+c2e/bxTDNhqOAlRS+zXSj8h3Q03ApAZ?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 6:mqX80Q3kwIg+J5ejNyAmSwnPlLx24jTmTfW95iKYO1j1nfDalvvlszvSWugBM89KmenmhUof6W2tvonDQKBvrO3tMTO+LN9g32KzFqMkTx6gXaKTUKj1bHRGbaOyfEW5srbFIDnkJvREJI3mgiH4R7+m3hDG2GuGUf1KJTK+kBtYkV74CMSxCnGCrxPszT/JEvz/AVle420LPVkyShE3gJCRvPyvQagJNARA6qvEO12ZWi+bF+XXNqm1OpH9d5B4SkOQU3LWeIQ0HDNIV9TA9rjb/Ilz8AsCt4MswZaSPiBWgPzTLMmuXc3k3l9+ZthxMdsEX/DABv3+XIsHyUgCNVstgGifmx9MtLN7nvmTlrX9E5rZfDu/U8W1+L3MdYvCaIeHU37dteohlL1TeBX5AUaszT9gAqGMt5RurV2G0ra6AZe/h5WHlUT24wP4IC/FY/o0kGvhXa9qwWkqIlzafjdSqKU4o9xA0eb7Ps/kBL97OSoZ59ovyfhY2ogNvdEYzNejoUyGR0FnXaKbfE1gVQ== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 5:zV0E8hCiUclbCNF+XfMdj10+kZoQYiY5WNruWDeJIozglA4SpOO4tc6GMdaE8FZnIJHZ6kjDOgxUvMWDPodpRuPymlzHG0uYL/HR28lVqmT4tzNZOzLk2n3fwgZ2JA2+boaJpTvq+b7e8uOznmxWXuFhK/roHWF6sVhMtmfNM06jkaodu7Tcblkep9AorfjhSQr8iWNJZpizxcunZ5m51QBXp/PIM4jWzRWqrL46M3rSOPWVtgC7hRKtdjC/lpUHoiQRVMOOhWSGwPd95gc9BML+6dB/mj/enHj+T0iqa7Vbn2U/9QRCNmcRqcahdcac9oX4bHMWEXqF9JKD883qHLROlAuHAwG1rhyG1r/VgfOfNMZN2Ez7/r/GK6K3OcfYYG2HqGc252wCx7gGZa3zvzg2SLoXg1ZwdfDkTX34XsHy3SsGLgmQDpfDTa042xXrx/y/pknxSZ2uRoxB0w5Z8zmEab6JXBUr1Ewbd5a1cv0RQAT8M2pbi5j+I+dA1D9j; 24:2KW58vgbK6W9sAOQyrlyRYOUhCMtYHFmkWqE0KrMr2kMUoTua5go3hfmcb78ZNSbSPLHmwz+kp3CWNRkWpHzh4NsJFs8RJ44LsJ+gXs4wm4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 7:h8jB54IpCnZf6N48gKsIDjYBHqvjtcvM3CtYmA8r+fGLzN087uHp8RsJJ5B4Eu/XrC3b/HELlcvr+3goSDLbrOzWAqqA7ObKepF/qcn5UatOKEVWtks5rwF5iFfpZvuKVwXyaC4XRG6bfzCAapwNpgFpgu+chLjJMvIu0MkIUq/Eh5NVlfzlgyPgFu6vK2pEalGs+dq3xoH9uYxe8mm2kXljjY064F5WFEj/xbxYy4Qe/9iMMxq9RPcWsyCtzmLTMGou8VBMdAvijlIqG+PRX9R/0Yu5araFbfcTdol0L1RvgL9ZduQXvHPDSqaDS2PfYx/mbuKOo/NJo03pVkNmLw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 10:38:30.5373 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1721 Subject: Re: [dpdk-dev] [RFC] eal/memory: introducing an option to set iova as va X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2017 10:38:36 -0000 -----Original Message----- > Date: Tue, 6 Jun 2017 10:57:20 +0100 > From: Bruce Richardson > To: santosh > CC: thomas@monjalon.net, dev@dpdk.org, jerin.jacob@caviumnetworks.com, > hemant.agrawal@nxp.com > Subject: Re: [dpdk-dev] [RFC] eal/memory: introducing an option to set iova > as va > User-Agent: Mutt/1.8.1 (2017-04-11) > > On Mon, Jun 05, 2017 at 10:24:11AM +0530, santosh wrote: > > Hi Bruce, > > > > > > On Friday 02 June 2017 02:57 PM, Bruce Richardson wrote: > > > On Fri, Jun 02, 2017 at 09:54:46AM +0530, santosh wrote: > > >> Ping? > > >> > > >> On Wednesday 24 May 2017 09:41 PM, Santosh Shukla wrote: > > >> > > >>> Some NPU hardware like OCTEONTX follows push model to get > > >>> the packet from the pktio device. Where packet allocation > > >>> and freeing done by the HW. Since HW can operate only on > > >>> IOVA with help of SMMU/IOMMU, When packet receives from the > > >>> Ethernet device, It is the IOVA address(which is PA in existing scheme). > > >>> > > >>> Mapping IOVA as PA is expensive on those HW, where every > > >>> packet needs to be converted to VA from PA/IOVA. > > >>> > > >>> This patch proposes the scheme where the user can set IOVA > > >>> as VA by using an eal command line argument. That helps to > > >>> avoid costly lookup for VA in SW by leveraging the SMMU > > >>> translation feature. > > >>> > > >>> Signed-off-by: Santosh Shukla > > >>> --- > > > Hi, > > > > > > I agree this is a problem that needs to be solved, but this doesn't look > > > like a particularly future-proofed solution. Given that we should > > > use the IOMMU on as many platforms as possible for protection, we > > > probably need to find an automatic way for DPDK to use IO addresses > > > correctly. Is this therefore better done as part of the VFIO and > > > UIO-specific code in EAL - as that is the part that knows how the memory > > > mapping is done, and in the VFIO case, what address ranges were > > > programmed in. The mempool driver was something else I considered but it > > > is probably too high a level to implement this. > > > > The other approach which we evaluated, Its detail: > > 0) Introduce a new bus api whose job is to detect iommu capable devices on that > > bus {/ are those devices bind to iommu capable driver or not?}. Let's call that > > api rte_bus_chk_iommu_dev(); > > > > 1) The scheme is like If _all_ the devices bind to iommu kdrv then return iova=va > > 2) Otherwise switch to default mode i.e.. iova=pa. > > 3) Based on rte_bus_chk_iommu_dev() return value, > > accordingly program iova=va Or iova=pa in vfio_type1/spapr_map(). > > > > 4) User from the command line can always override iova=va, > > in case if he wants to default scheme( iova=pa mode). For that purpose - Introduce eal > > option something like --iova-pa Or --override-iova Or --iova-default > > or some better name. > > > > Proposed API snap: > > > > enum iova_mode { > > iova_va; > > iova_pa; > > iova_unknown; > > }; > > > > /** > > * Look for iommu devices on that Bus. > > * And find out that those devices bind to iommu > > * capable driver example vfio. > > * > > * > > * @return > > * On success return valid iova mode (iova_va or iova_pa) > > * On failure return iova_unkown. > > */ > > typedef int (*rte_bus_chk_iommu_dev_t)(void); > > > > > > By this approach, > > - We can automatically detect iova is va or pa > > and then program accordingly. > > - Also, the user can always switch to default iova mode. > > - Drivers like dpaa2 can use this API to detect iova mode then > > program dma_map accordingly. Currently they are doing in ifdef-way. > > > > Comments? thoughts? Or if anyone has better proposal then, please > > suggest. > > > > That sounds a more complete solution. However, it's probably a lot of > work to implement. :-) > > I also wonder if we want to simplify things a little and disallow > mixed-mode operation i.e. all devices have to use UIO or all use VFIO? > Would that help to allow simplification or other options. Having a whole > new bus type seems strange for this. Can each bus just report whether > it's members require physical addresses. Then the EAL can manage a > single flag to report whether we are using VA or PA? That's the plan. Each bus op can say, VA or PA or Don't care(in the case of vdev). And rte_bus aggregation function check all the buses preferred address scheme and decide the mode of operation. Yes, We will keep aggregation logic simple now, where when all bus says to go with VA and Don't care, we will go with VA else PA. > /Bruce