Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3391897ybf; Tue, 3 Mar 2020 05:14:46 -0800 (PST) X-Google-Smtp-Source: ADFU+vs6vwigwVUH5gFTRg2M1Oc9WxoGm171/AbAO+LZe/DqybQmIhEMtfbx42tcAdrTzjppZj+/ X-Received: by 2002:a05:6830:1684:: with SMTP id k4mr3456792otr.75.1583241286547; Tue, 03 Mar 2020 05:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583241286; cv=none; d=google.com; s=arc-20160816; b=0nj7JgNndfkfSx+IDblDdGHtLc9G5sL9Mri+Z5p2/IOZicsqLN7AhHZorwl30QNZtZ PWrFJLWgL7+AnJ1QerqUZyG07FxOPn5HoY64F8DWXnvo5gmn9co/3m9/7+ahOBYT7wFW rn482GmAxBYGKxmcYFMNrgTLpw9augPtIXHUg2eT4H0z/mNXdH5iUG1YSnuzbxYmFNhW 86L9bJYBYL3bnzvMY95MoFHs4ka7kYXbySs0TYi2swg0YaZNiSM+AB3D0HQAHu3iZ4Ov uQMpbwLwlb1BZ++deF8CJVE0vNboinp4UVJMz4JKbmhVU+fjZjgbKJcD7WZSKqMZaOZF hKFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=K6MYW0Cw8y8JjG5SoRIVtn0utAaLa/9boq4bliE04oQ=; b=p/0QsKwF5soPCJPK8ZWRNYqbAhUL+JB5k79ykpZzbgzCt2qmouRjyv78jNvihzOL9e kW2/feeX9Mazig+U6lxMiKmgWrLmtlP79OiwDnnOvl+Pz+WEQ/wN1aS9ajqP15YhhmRw +Z64azcQYV9UhQc6r03SgnqGVM4M+/u42FENy4LBiJa4uQCo75Z4hVpjarOrj4d1FgRb bXcSi2V84LahlQG5gxYyh7aRX/yfBQSIdzE24cSFuOel93jmmrHV25sd4CY2/NwrmvYw BVKzW6kaUm7sNy4stZZIEhBtnu9aYDX0bY5uX2Ys8prBEz3LK1FuIjVU/fCYnumVDnwy G/jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="E/D9AxX5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si8375127otp.139.2020.03.03.05.14.33; Tue, 03 Mar 2020 05:14:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="E/D9AxX5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728070AbgCCNOU (ORCPT + 99 others); Tue, 3 Mar 2020 08:14:20 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:39734 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727121AbgCCNOT (ORCPT ); Tue, 3 Mar 2020 08:14:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583241258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K6MYW0Cw8y8JjG5SoRIVtn0utAaLa/9boq4bliE04oQ=; b=E/D9AxX5y6fo7WvBvhjKkXA/LWgv/w0wwgPBif8WCHPY8UD5RIQAkRzRrbyEnTLYZcEZJd n35m9Y7j7aIyTPCesZqaNG44Kn/9wRfU1IqXHo/CM5mQ/NjGgPMV+lD7xyPG1o/y3FReRx /vumSyD8XnuCWwfdidZGmVsMTuWH9D4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-180-hrEKN05ONsaAjIh7E5NlUA-1; Tue, 03 Mar 2020 08:14:14 -0500 X-MC-Unique: hrEKN05ONsaAjIh7E5NlUA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2B28A13E4; Tue, 3 Mar 2020 13:14:11 +0000 (UTC) Received: from [10.36.116.59] (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 00884277A4; Tue, 3 Mar 2020 13:14:02 +0000 (UTC) Subject: Re: [PATCH v9 00/11] SMMUv3 Nested Stage Setup (VFIO part) To: zhangfei , Tomasz Nowicki , "eric.auger.pro@gmail.com" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "kvmarm@lists.cs.columbia.edu" , "joro@8bytes.org" , "alex.williamson@redhat.com" , "jacob.jun.pan@linux.intel.com" , "yi.l.liu@intel.com" , "jean-philippe.brucker@arm.com" , "will.deacon@arm.com" , "robin.murphy@arm.com" Cc: "kevin.tian@intel.com" , "ashok.raj@intel.com" , "marc.zyngier@arm.com" , "peter.maydell@linaro.org" , "vincent.stehle@arm.com" , "zhangfei.gao@gmail.com" , "tina.zhang@intel.com" , wangzhou1 , Kenneth Lee References: <20190711135625.20684-1-eric.auger@redhat.com> <3741c034-08f1-9dbb-ab06-434f3a8bd782@redhat.com> From: Auger Eric Message-ID: Date: Tue, 3 Mar 2020 14:14:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zhangfei, On 3/3/20 1:57 PM, zhangfei wrote: > Hi, Eric >=20 > On 2019/11/20 =E4=B8=8B=E5=8D=886:18, Auger Eric wrote: >> >>>> This series brings the VFIO part of HW nested paging support >>>> in the SMMUv3. >>>> >>>> The series depends on: >>>> [PATCH v9 00/14] SMMUv3 Nested Stage Setup (IOMMU part) >>>> (https://www.spinics.net/lists/kernel/msg3187714.html) >>>> >>>> 3 new IOCTLs are introduced that allow the userspace to >>>> 1) pass the guest stage 1 configuration >>>> 2) pass stage 1 MSI bindings >>>> 3) invalidate stage 1 related caches >>>> >>>> They map onto the related new IOMMU API functions. >>>> >>>> We introduce the capability to register specific interrupt >>>> indexes (see [1]). A new DMA_FAULT interrupt index allows to registe= r >>>> an eventfd to be signaled whenever a stage 1 related fault >>>> is detected at physical level. Also a specific region allows >>>> to expose the fault records to the user space. >>>> >>>> Best Regards >>>> >>>> Eric >>>> >>>> This series can be found at: >>>> https://github.com/eauger/linux/tree/v5.3.0-rc0-2stage-v9 >>> I think you have already tested on ThunderX2, but as a formality, for >>> the whole series: >>> >>> Tested-by: Tomasz Nowicki >>> qemu: https://github.com/eauger/qemu/tree/v4.1.0-rc0-2stage-rfcv5 >>> kernel: https://github.com/eauger/linux/tree/v5.3.0-rc0-2stage-v9 + >>> Shameer's fix patch >>> >>> In my test I assigned Intel 82574L NIC and perform iperf tests. >> Thank you for your testing efforts. >>> Other folks from Marvell claimed this to be important feature so I as= ked >>> them to review and speak up on mailing list. >> That's nice to read that!=C2=A0 So it is time for me to rebase both th= e iommu >> and vfio parts. I will submit something quickly. Then I would encourag= e >> the review efforts to focus first on the iommu part. >> >> > vSVA feature is also very important to us, it will be great if vSVA can > be supported in guest world. >=20 > We just submitted uacce for accelerator, which will be supporting SVA o= n > host, thanks to Jean's effort. >=20 > https://lkml.org/lkml/2020/2/11/54 >=20 >=20 > However, supporting vSVA in guest is also a key component for accelerat= or. >=20 > Looking forward this going to be happen. >=20 >=20 > Any respin, I will be very happy to test. OK. Based on your interest and Marvell's interest too, I will respin both iommu & vfio series. Thanks Eric >=20 >=20 > Thanks >=20 >=20 >=20 >=20