Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3385393ybf; Tue, 3 Mar 2020 05:08:16 -0800 (PST) X-Google-Smtp-Source: ADFU+vunllWGCUJaLXZhqMQ0JI4EZar0Yn4qomjT4Uef9GpkWWsagPP9amYj16fnqtggpDHOVpnK X-Received: by 2002:a9d:7d87:: with SMTP id j7mr3148259otn.159.1583240896051; Tue, 03 Mar 2020 05:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583240896; cv=none; d=google.com; s=arc-20160816; b=GkzyQT0VVLQTrJololcw0gkINulGlGxcd8HQ6Dl5kuF4O3FH6ES7UZmQZ6ksC47jAB KnD5mdk8e546SfpseH8oj0GLmrkmgyyfmmMQB6pWutm1jsHU3PLabDv4TsV74X1cuCHM meYB2I0ojf0/NkIat4a17iOBo9fjNBv2P1FUwxQft7dPEYT1mqetkci84/AaYY97V6Dr /Hz+yPDo75YDEiKc2JlbWxzECug3RIylc2g4R2M/hZi2/FIArxs/6pObS2MXLEm0RwXP NKG8PHlbc2YohdEgC8lyZ1WF6Rq7bueCnAsvY3E6Z1V7N4paBbY5XNQkkXx2MPuiPvz4 ocsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Lg++IdYMeQd94pD/ZLBO5CJLpoQAjy8oNL8AZop1ans=; b=zhBiOk0Bj7AIOacgc87UANmzbez7zjkNrM4CQT+GVFqViAf165Y0wmqZZxKWCPUd7u k80I7vVUbA1CUxVdJet+ITGFHxFupnLr2jtK4neFM9fGuLPs048AeGlva0Af2mv6QZks VY7CwiZ1v/P9wc5naukSuCSS93x+571loCA6RMnsU7cTszKX3gvzVg8qVNZZjfCS9Q0C OxNwU008bpapvHM0mCkfQ/R8kTZcxMn1JpHvIKofjx5QSrMsBM4uSOzjYQHg2xNTkYL/ BhGPZQ7/dzJxZVN5T24ziMxN3kmvIomVW3cxuNTTSvxdDbNaQhiN0wSnN3KddbNlA8qK hs1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pBdyV79X; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u78si5216448oia.266.2020.03.03.05.07.58; Tue, 03 Mar 2020 05:08:16 -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=@linaro.org header.s=google header.b=pBdyV79X; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728183AbgCCM55 (ORCPT + 99 others); Tue, 3 Mar 2020 07:57:57 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46062 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727585AbgCCM54 (ORCPT ); Tue, 3 Mar 2020 07:57:56 -0500 Received: by mail-pg1-f196.google.com with SMTP id m15so1494277pgv.12 for ; Tue, 03 Mar 2020 04:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Lg++IdYMeQd94pD/ZLBO5CJLpoQAjy8oNL8AZop1ans=; b=pBdyV79X5PzDSeKMLl78uCsyMMfApV/dm6Xt0abLb0CDLkPTIcuZfFfifhGyzHBFhQ uPB4L44CjJt97iTH9OX3ExajyF+uak9tl+MDBZELIkQQfJI1y1OkWiBWc7V5K5uXdoeX u6kP+HaiPiyu0ajhimW8fQaIwSIqfZ0BTiecuD48wzWbijj3BWVCVPXQ/vW7aH9X9HfV 2XV3ry/BiJQIAjFEAV05BQrRjLk0QxP8gwLS54uTMj/wr7EVFpSiKBZf/OQXoqV5xBCi 760oD2HdWo/B0hn2swU9vOQ+0n7r9yfX4BWiryhqSt8waHinEjBMk+4TlYNMMItRsRIC jZdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Lg++IdYMeQd94pD/ZLBO5CJLpoQAjy8oNL8AZop1ans=; b=CG9uXCQB79FRUo/CqC0rbNGW1gSl63zjsKayRYJD9gAxhTy+5moxFR9mIImSHLZxkt O7x2NyxV9fnei27fYAsjpJFc9Ri7m+JdpF6i4bTHbENiJWWc/DfkMmpZUtl1XMq2Fmqq dGKD7D5DjyDfo+QPUp299ibug1EMAD8A57SUWU4vzB0I0ZL/mR8r7szuqNtgzMFqlc8G VxiP/+LoK3vEmX8xljbWtu3O5eIrw9Jkq0fPArIhoMKvic6t7SOZD4my482t2VXV3kwV MRhek0ECokaAGdQL5rbagzEPHlSEH23Zxmn4w0HSvvSx/X38d0RHOvOAiyvfJipIQ7Xo BAew== X-Gm-Message-State: ANhLgQ1YcM143/dQJRXc/bmuDeTSWahgk/1k+PvXoDmIXAk7qwqq/F4S 294Cb6pSenU981hUJL5trXaXxg== X-Received: by 2002:a63:91c1:: with SMTP id l184mr3862200pge.341.1583240275667; Tue, 03 Mar 2020 04:57:55 -0800 (PST) Received: from [10.122.2.74] ([45.135.186.15]) by smtp.gmail.com with ESMTPSA id x66sm13299097pgb.9.2020.03.03.04.57.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 04:57:54 -0800 (PST) Subject: Re: Re: [PATCH v9 00/11] SMMUv3 Nested Stage Setup (VFIO part) To: Auger Eric , 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: zhangfei Message-ID: Date: Tue, 3 Mar 2020 20:57:27 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <3741c034-08f1-9dbb-ab06-434f3a8bd782@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Eric On 2019/11/20 下午6: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 register >>> 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 asked >> them to review and speak up on mailing list. > That's nice to read that! So it is time for me to rebase both the iommu > and vfio parts. I will submit something quickly. Then I would encourage > 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. We just submitted uacce for accelerator, which will be supporting SVA on host, thanks to Jean's effort. https://lkml.org/lkml/2020/2/11/54 However, supporting vSVA in guest is also a key component for accelerator. Looking forward this going to be happen. Any respin, I will be very happy to test. Thanks