Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5150465pxj; Wed, 9 Jun 2021 10:15:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdAHsY2LSVSYxXWdSwOL5fYhJmGmNBbQgq/Fa1gm9jDDcgvtnGsK9MXUWZkAc0NZ92wSjJ X-Received: by 2002:aa7:cb19:: with SMTP id s25mr504200edt.194.1623258920966; Wed, 09 Jun 2021 10:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258920; cv=none; d=google.com; s=arc-20160816; b=JV9Tm760yvC7LQR+VJHF3Eleljt25KInr0jqav2qYRXykfFWXHRkGp9TNq64ATl6G7 U1SrcWWnmVlxHJ+izQWcjitzQRWb0X+Ni0xGHxnKhiQHUf8MgKvCSQEanEKFORMBPt44 Hm097b/temImH+Qk65rxZJj5LdcwsRNytpFNn14gnVTkx2MIqB81yuAlQE3sgs7HXPeT Ul4QVzrWYiZ1x71h4mstVx+BVy6G8eErNJSt6ivZmVyAX61ZeJor+wLJah7Ebe15VGht RzsNCeqFzpcDH8bmxwMqXKyem810+5cYj4eDYQhTmJcOMotg65faLiZASpDTRbxImobC DBtg== 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=cTbr03lF1s42chv+SYCs+e7y/O45XJ9UtZmRXWLpirk=; b=fuvrdBThgb4I28VaSV4nozjZt4nvKiifklkpi33kffzDh/WWJstgHSqRKlvRzODsOW 4ILdTAmIhHey5KeyKHhf9shUujsVZnnWOeOQP2eY4UlpDrVEcnIZH5hSBd0Zzv7A2f/M Dl3OMdm/3aV1Z7o5jY8/L1aSpRT2d5L/sZm5kbXg66Vf9OMK1K0CccPKwUi1JjZhyjPX Va7HyCqZujNoF5LjeNM18sTS7+wMN2KaecfS16BwyFlIOkFJQdA8kSb9xLHkFVX53LdF Oq6MX/mBDdtDd7I31FoOged4pjy1jGfXBaXkWjdwKhjqOkQv2LgOIFi4V7Udunw/mtq+ nkGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WmiR2RPP; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si160452eds.101.2021.06.09.10.14.56; Wed, 09 Jun 2021 10:15:20 -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=@kernel.org header.s=k20201202 header.b=WmiR2RPP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237459AbhFIJDr (ORCPT + 99 others); Wed, 9 Jun 2021 05:03:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:49978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231919AbhFIJDr (ORCPT ); Wed, 9 Jun 2021 05:03:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 26F6B6023B; Wed, 9 Jun 2021 09:01:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623229313; bh=Z+zI0RDuvSuYN6v7HJscpw3B4/5MAYapaANvzw9NBwc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WmiR2RPPVpg5P331nrK6XjeWdv7pCU0af80mG7uj4/EG2o1tb9LLtohiNLtk8mpOb tkFIKDCEKcOcSiIcbIMGVJ/fN1JUvOts/U/6Yw1l97gZt0kPZUy4edDI5lNpXcnIHC W5BeTbAVwtq/9WO1fN6mDJoad1oG+A8DlCM4IJCZshJ82bV4+vGfwQkfXHIYfjD0jV bEtrvNChyxo6+7hO+YhBAUjFIuWHPM3pjUlKGjLtPl/N1r55hfu6xP0Jm22i9rYpGC TnY9mjqjTBAMX7vHcjrSXqStZ8qiBPVsWNoI4f98t6nYhC5euToDZuG5VDhnF8mgAN QyqLZFfoTPMdQ== Date: Wed, 9 Jun 2021 12:01:49 +0300 From: Leon Romanovsky To: "Tian, Kevin" Cc: Jason Gunthorpe , "Alex Williamson (alex.williamson@redhat.com)" , Jean-Philippe Brucker , David Gibson , Jason Wang , "parav@mellanox.com" , "Enrico Weigelt, metux IT consult" , Paolo Bonzini , Shenming Lu , 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 , Joerg Roedel , LKML , Lu Baolu Subject: Re: Plan for /dev/ioasid RFC v2 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 On Mon, Jun 07, 2021 at 02:58:18AM +0000, Tian, Kevin wrote: > Hi, all, <...> > (Remaining opens in v1) <...> > - Device-centric (Jason) vs. group-centric (David) uAPI. David is not fully > convinced yet. Based on discussion v2 will continue to have ioasid uAPI > being device-centric (but it's fine for vfio to be group-centric). A new > section will be added to elaborate this part; <...> > (Adopted suggestions) <...> > - (Jason) Addition of device label allows per-device capability/format > check before IOASIDs are created. This leads to another major uAPI > change in v2 - specify format info when creating an IOASID (mapping > protocol, nesting, coherent, etc.). User is expected to check per-device > format and then set proper format for IOASID upon to-be-attached > device; Sorry for my naive question, I still didn't read all v1 thread and maybe the answer is already written, but will ask anyway. Doesn't this adopted suggestion to allow device-specific configuration actually means that uAPI should be device-centric? User already needs to be aware of device, configure it explicitly, maybe gracefully clean it later, it looks like not so much left to be group-centric. Thanks