Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3326153pxv; Mon, 26 Jul 2021 01:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx67ecNaxNjSTfjMhE7+nkRVn7gd69qncY5P13DLc5MLcMRyqQhuLnbA7KxI7yNNYKTMWkK X-Received: by 2002:a05:6e02:14cc:: with SMTP id o12mr4864931ilk.76.1627287386949; Mon, 26 Jul 2021 01:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627287386; cv=none; d=google.com; s=arc-20160816; b=BlSh2wry63WkA2MhjjsKldKlCKslFjY2UkaJaiZVrcONUVFo47hoEZkfWYLcABAjzm 43VHuUQzsh7VRdAgX6Yuw7Sjw0An5j+HoSZs9pn943uxs3oU63URPLp8nDlDoNRvB1u7 I/qwRwDi3jQNHkHFOuPOL2bcTrx9gyHGS1fYnf6celgAwvN76YUKF9Qh4UE/cybvvCMw qnOkkNhFSi2iqcWjqGbGAJ96gTflbjNt6X4NzwA528K5URI9fdV6XAiz/fuvinCKtGAB RCyxqzEUT5gaiK210g2adkMhzor1ZrtptI0Z8h5zAHBhd23iG8O4qDiEzMN1kVWkijip AD/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lYPdbRk9NzuoNJUglE6NuLhP3wUwwX0fk3ZFMcXvP/U=; b=PuN/ukNlaMG/RVQJLvgfu6LZwRBggePllC120ExalAXEK/yrWdJ6XuKCadfd/ytByc O9U4uEPcuPI02tyV6yvLbRGP9tpkBCPQImZlQoqVPvhlZuf52QL8SCty/6k4CUXwk6Dx GgHJ3uz1OGTwq1+iqfaIhAK4Qt1aZSRO2d0ESjqsuglXb1iCb67DFWxpJw9Jw12PyiW1 8gHxz8h6FWE0Hs4GxPpfTeqK52olftI0k//rSd9HzYgwX8C+PIcSX4FwQMQtbpGL0VjR r6Y/jSyw8xSSrfupvP141ELMHd717gal44VNztQqGfIdaveM9JtvOm27fOUDrAS1hUw8 cOVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EAfH77y0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h3si39333145ila.128.2021.07.26.01.16.14; Mon, 26 Jul 2021 01:16:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EAfH77y0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233019AbhGZHec (ORCPT + 99 others); Mon, 26 Jul 2021 03:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbhGZHec (ORCPT ); Mon, 26 Jul 2021 03:34:32 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C783C061757 for ; Mon, 26 Jul 2021 01:15:01 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id go31so1397622ejc.6 for ; Mon, 26 Jul 2021 01:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lYPdbRk9NzuoNJUglE6NuLhP3wUwwX0fk3ZFMcXvP/U=; b=EAfH77y0T9DVi60ddgTxfiNjVbCkRZDnGy7sUciUJR8aVdP1qOrB2yFz9zft4tSwyK h3o1PyOTWU7bnLEIm1BK5Y3c3iso8WYqSImsfo07C6TTdXS9E254YhrUPkSFM0EaMFF3 F9gXUmffTab0iU9CLaHRX9SpepJQvunKcStC67hdbv1lIybQdZ2TKpcKpRCvw+TMOX4W cngneCV5GAgn9g7Ccn6FVxd3mfaEzXzL5OypdyFn/uuHo31xdAA2oP4+m5iwLiaNlZS+ xZXyemQM1pI0rJelm4HCJ+DaZ6gKAs4OsXMBaXNPcKh6U2FvN6B7JYPgUdLd2sRqMd+z k1/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lYPdbRk9NzuoNJUglE6NuLhP3wUwwX0fk3ZFMcXvP/U=; b=UHZVY2s9ZgJ2t4vaGIbaruugs9+K9nujttlPNPBvlO6egcsTHmxAdZQK4dLvicWbCe wIkHiPrAUCI0Z8RqgAyooQoqDB/6LMeEkSx9w3ep6Oc7thp53fptM2o2TPshEdohUtez C4XzQpMlc6e5x5DariOpKzB0AqIov4ExBG63w3y6iICfhKXCf0Z851dVOOjDmiE1D7Rr /VQ0YRfkM+M/bODioyz0hpEXepUkglD11oMyibE7qdhK14viOLV2Cf7+xXf4O8JtyGhr vAuiYPYjmbrBJbxWDoGoLX640RdJ2GJyPyaAh7g+K1lli+CCtht5UheVlxFF1MnPUQ+z 0yZw== X-Gm-Message-State: AOAM532FFfSzzdRM30xNq5C4kHt044jgCilShM9QM9A3QFgKH9oLi0h2 kVHrNaqnImpHC3zcxJC8m7vQTg== X-Received: by 2002:a17:906:580c:: with SMTP id m12mr13853095ejq.32.1627287299669; Mon, 26 Jul 2021 01:14:59 -0700 (PDT) Received: from myrica (adsl-84-226-111-173.adslplus.ch. [84.226.111.173]) by smtp.gmail.com with ESMTPSA id gx11sm14042132ejc.33.2021.07.26.01.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 01:14:59 -0700 (PDT) Date: Mon, 26 Jul 2021 10:14:36 +0200 From: Jean-Philippe Brucker To: "Tian, Kevin" Cc: Jason Gunthorpe , "Alex Williamson (alex.williamson@redhat.com)" , David Gibson , Jason Wang , "parav@mellanox.com" , "Enrico Weigelt, metux IT consult" , Paolo Bonzini , Shenming Lu , Joerg Roedel , Eric Auger , Jonathan Corbet , "Raj, Ashok" , "Liu, Yi L" , "Wu, Hao" , "Jiang, Dave" , Jacob Pan , Kirti Wankhede , Robin Murphy , "kvm@vger.kernel.org" , "iommu@lists.linux-foundation.org" , David Woodhouse , LKML , Lu Baolu Subject: Re: [RFC v2] /dev/iommu uAPI proposal Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kevin, On Fri, Jul 09, 2021 at 07:48:44AM +0000, Tian, Kevin wrote: > /dev/iommu provides an unified interface for managing I/O page tables for > devices assigned to userspace. Device passthrough frameworks (VFIO, vDPA, > etc.) are expected to use this interface instead of creating their own logic to > isolate untrusted device DMAs initiated by userspace. > > This proposal describes the uAPI of /dev/iommu and also sample sequences > with VFIO as example in typical usages. The driver-facing kernel API provided > by the iommu layer is still TBD, which can be discussed after consensus is > made on this uAPI. The document looks good to me, I don't have other concerns at the moment Thanks, Jean