From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1D36C3F2CD for ; Tue, 3 Mar 2020 12:57:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 78F6D20866 for ; Tue, 3 Mar 2020 12:57:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pBdyV79X" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728668AbgCCM55 (ORCPT ); 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-Google-Smtp-Source: ADFU+vvmaCiGdnLf7VVnD73qoTDE9qAVS2O4FvZFUlSW1+1T1yr52B7c7d1Vy26Nlbvk0udV+zchMA== 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