From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id F1E458E66 for ; Thu, 10 Dec 2015 21:31:52 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id n186so2296038wmn.1 for ; Thu, 10 Dec 2015 12:31:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=5KeoEcLphaAsraW8Na2cmy/VOEgKfMDsiKijI9QvTYw=; b=d9goVIkG/3XVkVElRbMYvGe08hitByjP3kcn7+WM99myn781rNPFmtj/LiT06ptfBN DWyc4JBK9XhHGZgPZKj9hjGfbwEGogy7Ix7Q19sEJkOZGD/Tou7fdOEhbxZw+jYM8/lZ ZXY9MJcqEcE99wc3bJJXxkVPf8jSwCXKkmSyjDT5/pSgNHJkNDaEL2i+ui+4YE0Y2oSA GCzdlQKQfEygwDaePNfG4F65Yj6pCqJ39Xoh0aYiDUxyOlP2fSn7kGIEcf7Pa/g5brHd o6tvdL5Pl0e5mBXT5RdLx9x45X7iGdAlHlFjX6SKVKZnGCXTfCDF2cIf9ZL9jd+qFMAO XNcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=5KeoEcLphaAsraW8Na2cmy/VOEgKfMDsiKijI9QvTYw=; b=N2xkMqCSxfyCd+MQMayA5Ba3dMPU3ipeeBI4lbDAlnkOAto569aM5G7yMd5JB2rPLx LeFLtodFarKLkDOC2MeR/nojO9pkE6XiVLNie9T1dhjbXgARn2W+DlfvxeNCm9or/a0Z +Z23HFbipLOBEFUt4CwdanHAyQVceb4c0sMmjhLsRLVJ14G8U7rEDqw/KmB1jIKDpI79 /PL3OVTcT3P3/mITmfsdIzMkKSugNO5WMKtBsbhJ7GrpOaOl/52WGYy4+COWdjxFlbmP RAxPPLQdMk4Otv4GdwxcJBF3lXSzGe5BbczwdrLNyp2UcsICQxYwxYyxvARFYpBKI3ot isKA== X-Gm-Message-State: ALoCoQnw/PtJ0WF9ZbacLGPvE51q4Sdxwawav1h3XafWDNOGOeuw8iQM50bo0bsScWwqroTMGYhJUDoPn3n7OhQwCum2FdWk3Q== X-Received: by 10.194.23.201 with SMTP id o9mr15113102wjf.30.1449779512772; Thu, 10 Dec 2015 12:31:52 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id n7sm360054wmf.21.2015.12.10.12.31.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Dec 2015 12:31:51 -0800 (PST) From: Thomas Monjalon To: Stephen Hemminger Date: Thu, 10 Dec 2015 21:30:35 +0100 Message-ID: <3203697.oS0G5XCV1g@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1449683756-13381-1-git-send-email-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] vfio: support iommu group zero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2015 20:31:53 -0000 > > The current implementation of VFIO will not with the new no-IOMMU mode > > in 4.4 kernel. The original code assumed that IOMMU group zero would > > never be used. Group numbers are assigned starting at zero, and up until > > now the group numbers came from the hardware which is likely to use group > > 0 for system devices that are not used with DPDK. > > > > The fix is to allow 0 as a valid group and rearrange code to split the return > > value from the group value. > > > > Signed-off-by: Stephen Hemminger > > Acked-by: Anatoly Burakov Applied, thanks Stephen, please keep us updated about VFIO no-iommu.