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=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_RED,USER_AGENT_SANE_1 autolearn=no 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 4F44EC4743D for ; Fri, 11 Jun 2021 05:44:17 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DE2D961374 for ; Fri, 11 Jun 2021 05:44:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DE2D961374 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9E28C83B58; Fri, 11 Jun 2021 05:44:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qCIO7pBcbyJo; Fri, 11 Jun 2021 05:44:15 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id 916CD83B48; Fri, 11 Jun 2021 05:44:15 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 64A1BC000E; Fri, 11 Jun 2021 05:44:15 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 30AC2C000B for ; Fri, 11 Jun 2021 05:44:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0F2E0606A9 for ; Fri, 11 Jun 2021 05:44:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0SXk9Od_2AWz for ; Fri, 11 Jun 2021 05:44:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp3.osuosl.org (Postfix) with ESMTPS id 0478C6066A for ; Fri, 11 Jun 2021 05:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623390250; 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=5nlidzY7vVox2ieeNTmLbeG44JwkLPe3MMhpIq19x6g=; b=LOiTUDx60R9wOz9sP1ZGZtlwFXZen6zjRQvWMitayuXLMNIcTLGlDvaUF3WVODXI8I35q7 iC5GJros2ztPy4IZuHHeOWvIAZPoIshMuJIs4cISIPcMr8QCZIZeoMxJ19vNCCOGDXS0aU rlpnURci5sjJN8MvfCzJQE+fbqDvKZ0= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-462-gBzea7UvMyqBgwJUAzn97Q-1; Fri, 11 Jun 2021 01:44:09 -0400 X-MC-Unique: gBzea7UvMyqBgwJUAzn97Q-1 Received: by mail-pf1-f197.google.com with SMTP id j206-20020a6280d70000b02902e9e02e1654so2616940pfd.6 for ; Thu, 10 Jun 2021 22:44:09 -0700 (PDT) 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=5nlidzY7vVox2ieeNTmLbeG44JwkLPe3MMhpIq19x6g=; b=YrOf2Y2dasRoMObSJvwmpQJjCNZEJBrVo0aW0iiYJ34hohiq75fy8AAE6PdrHyob6B Wm5x/yQZRnaig6LLGYabtfehayWWtSHaXs9Z2HW9MdX5LFoF40A/46Dcb0+4hFt3GRM9 GhOOpjFlMFVREGkcYVZyt6JtGKRG9vDtQ1eES0Hth7hEWOlPNYsgvaN8QwOXG8PWFboo zbTugF2eyfkpfZnhQrS8yfl5DT6Jg9p8zy8pQWirWEMlA4ZQ4sYYa2miDnTX3mZGQxjN FkrofcW+fY4I5AlhMRcHK9Y+z9gs7bvRDsNWVEj3cb98c91JngGU+MG1ZWvwHNvwhOzk Z2Zg== X-Gm-Message-State: AOAM532UEsJPZSmSukqlfJkWf75nLe+OIi7lyNhyuqpZrzq3Av6MSSQV TZcDNxY23DOxL90CfRqsWa+lMInj+VBDAFLqkLsWrbnLeo8EML25Q3oHEU7vnUYgYZv8oS0dz6I s1tgVUYdW+t1tRrygNAuUlRaDGwxtcw== X-Received: by 2002:a63:6547:: with SMTP id z68mr1935897pgb.341.1623390248322; Thu, 10 Jun 2021 22:44:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKB65M93ciDtRjp4dLL7boO1gINllpJ4guVwZKP5dhsZp4Ljb4TFphg7Htp0BodlrU9JnK0w== X-Received: by 2002:a63:6547:: with SMTP id z68mr1935883pgb.341.1623390248048; Thu, 10 Jun 2021 22:44:08 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id d8sm4085729pfq.198.2021.06.10.22.44.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Jun 2021 22:44:07 -0700 (PDT) Subject: Re: [RFC] /dev/ioasid uAPI proposal To: Jason Gunthorpe References: <05d7f790-870d-5551-1ced-86926a0aa1a6@redhat.com> <42a71462-1abc-0404-156c-60a7ee1ad333@redhat.com> <20210601173138.GM1002214@nvidia.com> <20210602172154.GC1002214@nvidia.com> <20210608132039.GG1002214@nvidia.com> <20210610114751.GK1002214@nvidia.com> From: Jason Wang Message-ID: Date: Fri, 11 Jun 2021 13:43:59 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210610114751.GK1002214@nvidia.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jasowang@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Cc: "Tian, Kevin" , "Alex Williamson \(alex.williamson@redhat.com\)\"\"" , "kvm@vger.kernel.org" , Jonathan Corbet , LKML , "iommu@lists.linux-foundation.org" , David Woodhouse X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" CuWcqCAyMDIxLzYvMTAg5LiL5Y2INzo0NywgSmFzb24gR3VudGhvcnBlIOWGmemBkzoKPiBPbiBU aHUsIEp1biAxMCwgMjAyMSBhdCAxMDowMDowMUFNICswODAwLCBKYXNvbiBXYW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