Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp366389pxb; Fri, 16 Apr 2021 07:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS7hno+3cPkbLzQ1ul1I+4oGFgQD6vCbsfCNoHSPKx/+KgnjOgDOg/+H7GAgEIJYjJBQi2 X-Received: by 2002:a17:90a:ab10:: with SMTP id m16mr10115280pjq.6.1618583831899; Fri, 16 Apr 2021 07:37:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618583831; cv=pass; d=google.com; s=arc-20160816; b=lPb1vlyJZ3W56fq3VzSkI65ZKpOulRSxDUhoDtxunygUsEQu+shlspCeEkraoGiHHi glsDFP9OGKFgTDnfapw8AOjmuFTd9mNXHSGsXfG6T8ss/n4uapoVUSX1P0qK9gt+hWBE QAAbFL5y0/lUFw/SYluOFXd3+zwI2TKJCOnunTi+aaJieoHVWVS1dYPJXzmpzDH+1wKr URIGJkXNNwbKVY0jYzE9+Jh1jCTX6yDjFyth+t+qq6eGf0FKI89fRQr5sHkjM5ptRUpm kt7E9ASrOBpkh3NaBXYrF178v657GDjKNFmBoYpUU9rpAlTk46i7tktaBuJdR+bij8cp PabA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H4LNGlrRsxG9zQEEEZa6+Bne03W6a9ickZfs5pg8nSg=; b=TJKeR6p9LAH0gCqWmehCsuQcPdWxiEXsJkJtHRPisFjY+IrrEcgAJ1MfdCVLcisIIn Bcu+K5VvpPoNjLqraaiGrH3cQe1P6wht3WZxvUJpKD/mLarEOmlJsi8kp6TEwZqPLWe1 JTcIwnIYXDitFunAJoPHBLJmoL7KcNCGiHsXoWDo1CkQuE7tzWCEdE5qepyspisVuuoy GwOY8H8qtW2/3F9Vfxk6an+ba9qLpEEsVMDX9EkRHtBmZwFzoAIrnCA8HPbZZGzZKOew l1M7xyaAypqzS8ichm1HvYjt8EDdiMhWLPfEXyT9tGqJPhV2BQz0W/hT0+AcdTGGv51e szcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b="Dj/KTy5u"; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si2587052pfh.82.2021.04.16.07.36.59; Fri, 16 Apr 2021 07:37:11 -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=@Nvidia.com header.s=selector2 header.b="Dj/KTy5u"; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236281AbhDPOfV (ORCPT + 99 others); Fri, 16 Apr 2021 10:35:21 -0400 Received: from mail-mw2nam12on2043.outbound.protection.outlook.com ([40.107.244.43]:36353 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235724AbhDPOfU (ORCPT ); Fri, 16 Apr 2021 10:35:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=To442poxtQVzzFj1LTJo4j9IA88B8Se0RX3alZ0qLzE7svYCEDum9cOuck/1BR0F3Y+yfataM8SWKJFqnBQtpccvc7aNbJWL/WOKoADJdh7076lx7AOxfPvEnen4SzR/fovcXBY5wtL7Qgd4tZMEQrEViiQZNVscbtdylS1/+4gBSvSehYkswZnQEodaaooBbSXgdjBNdzppDl5TrRd/FfymobkHHMEbsqgJmUSaxebMJRrfqH5vs+Y7tOgDxs5aglMkrz7D3mulRPRrOwJ638b1yy5tW9Ck9xbPefmh4AiyNGN1c4NsROKaipMUVlAt9ZH3Iync+zh4s6dIBz7ORQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H4LNGlrRsxG9zQEEEZa6+Bne03W6a9ickZfs5pg8nSg=; b=gi00f+Vj57ld6EOQ6lz3w1KdeEgV7CxG8ppnABSHblErEYrq7/T8le/OSmqcmozgefykYm9/Q+FjPy5y4JXTPvNjwflanZ/4YF2PZxqYrtmPFdoipIJGc29N8bW/gayH2QHa1fp9zb0bMLZicTZ8FbBYSxHEXBjxYoY0qTcur03fM/11HGN/FhD8iTkezlL/lEpTVc7BqWAX2fcRKSDNflu+9tnUjIEjXzhu46ZtBhQLrhLJ7APQ8es1GkCU61CiWcVC+PsFutkYFiuWvEx/xEATvZBfFXFbCU1ZYCbQc87RqU7CNjCJe56bBzc1lQQ5o0PwqpKznrkeIuns0j9FTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H4LNGlrRsxG9zQEEEZa6+Bne03W6a9ickZfs5pg8nSg=; b=Dj/KTy5udnJBo6o0ERzhVT8rnNlNXF87o9B/2QnIxCkwNbIvbHwyRZiU5OcA/58x/M7yj7xJfHFNaX8PG/NFXLa6BEvSJ28WLi+fDybdbxkk9hjkdEAy23TNM286MmdmlbPm5Ivf3v9OX5yyMbxl2zl8dZT1mAoCLtlra2qtZWiBDBugE5bp/4ZquUk2VP4kzYisjdQJgZ/KMsrWZdOjf/7vKrfEN5Gv9A+bc1xgYiSwiSfaOiawNiu1ZaD6NsnWNx32XwQ+FGwlUtZu/TGl/hJDPSBgitI0H38Bjn+UbF+5NjkSeOwks0d4yTLq26cZMlMm3VP2/hvKbAOI0k+Ydw== Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) by DM5PR12MB1146.namprd12.prod.outlook.com (2603:10b6:3:73::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Fri, 16 Apr 2021 14:34:53 +0000 Received: from DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::1c62:7fa3:617b:ab87]) by DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::1c62:7fa3:617b:ab87%6]) with mapi id 15.20.4020.024; Fri, 16 Apr 2021 14:34:53 +0000 Date: Fri, 16 Apr 2021 11:34:51 -0300 From: Jason Gunthorpe To: Auger Eric Cc: "Liu, Yi L" , Jean-Philippe Brucker , "Tian, Kevin" , Jacob Pan , LKML , Joerg Roedel , Lu Baolu , David Woodhouse , "iommu@lists.linux-foundation.org" , "cgroups@vger.kernel.org" , Tejun Heo , Li Zefan , Johannes Weiner , Jean-Philippe Brucker , Alex Williamson , Jonathan Corbet , "Raj, Ashok" , "Wu, Hao" , "Jiang, Dave" Subject: Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs Message-ID: <20210416143451.GJ1370958@nvidia.com> References: <20210401134236.GF1463678@nvidia.com> <20210401160337.GJ1463678@nvidia.com> <4bea6eb9-08ad-4b6b-1e0f-c97ece58a078@redhat.com> <20210415230732.GG1370958@nvidia.com> <20210416140524.GI1370958@nvidia.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Originating-IP: [142.162.115.133] X-ClientProxiedBy: BL1PR13CA0257.namprd13.prod.outlook.com (2603:10b6:208:2ba::22) To DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (142.162.115.133) by BL1PR13CA0257.namprd13.prod.outlook.com (2603:10b6:208:2ba::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.6 via Frontend Transport; Fri, 16 Apr 2021 14:34:53 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lXPYZ-007Kg7-SK; Fri, 16 Apr 2021 11:34:51 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9ca4d51e-6233-4ef7-b2a0-08d900e4cc68 X-MS-TrafficTypeDiagnostic: DM5PR12MB1146: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AtOD/G2g9WLqFN9AcRZnvwCJAQnN7hC7RFhCH+eW/MxU2+dlyWn419aEc+o12aDSNS5eIFPlPLE1Jx5UPM9I2XYWByRdvwk1WlabAVCSWajIdHQKH8ENqNylJk2qbbWVxDKeiLjgYp5AR8CPUj+jlTAQjOhWmF2z4JPmbUKA/vli8yriaHkPiRHILdGyHDNt8DMrZcNRf5UmE+Ic8Yd+2IsdkmY1xIJH+2VMkzLt/oBLHs3NfGVzZWvTGncIl8s09gw4eRnxJiTBtHOKibZ86diXdAxYIZNQY3G+LMR8fZGhWarDMiYHIDP1FZf7QFCMtPWVFb87G8XPzNhiIZdwCkF+rIDLralg5gyrSZ+fWF+tUh1zWNlZgXc5kJ4OKEnQl5jHUJHFhtSDps7iWGXq+T8nQIRpBTnpNHvkbQtl33/1DWaGUS7udrSzw4NvnDa9eVxs1OFHtYoHbI2CNvVzfsyuHnYnhwm3M+TxPQCDNTsotahF5cOj9qnSqzHarIBlCxn+q3cpD1WgSOAKkbqmUYwZkvHx8yF4xVzcEOI4AkM5/uadG5hdrDIXvhATkjLlrBtliqadiWeuGu39OMdAsz72oi9RpPZn1Xdar+vv/OQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3834.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(396003)(376002)(366004)(39860400002)(346002)(66946007)(66556008)(66476007)(478600001)(8936002)(33656002)(54906003)(9786002)(316002)(9746002)(86362001)(26005)(8676002)(186003)(4744005)(36756003)(4326008)(6916009)(2906002)(1076003)(426003)(5660300002)(7416002)(2616005)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?tv+inDxGQseQ+iHCCNCF7y0Yzaj3PovNlIKSajxiX4EJxGSBx+j/wUpl8wYP?= =?us-ascii?Q?X6Q/b7yoby/tuCrVbrVU0/skvYSxrEnCN3DvL+WdWuihrmWH+5/9ufPAiPy+?= =?us-ascii?Q?9EaMxlly5nuUl71K5IWoeT50H82tL6Tab8vwVyR4Wl3NQUrSTGoMHX4Kj06T?= =?us-ascii?Q?9UplDY4iZNqXLrN04aGvl3pVhz/RmnebSewopgpZmHd+GDlWmt4ATItDAcgk?= =?us-ascii?Q?sslz5QNxf5GDe6JlwnSCyiVWEadGeV6gplQYBZbvDw7G2xko8qNlQZZL0hw+?= =?us-ascii?Q?e7Uq6/0JG7eSTxrtpKBd6m5T7014Cs2JmBYSs6XPRyRdeXxze9/tbVpDNVTQ?= =?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BAbektSFLvQXF8ZeVePSIDRpoC4HsxRA?= =?us-ascii?Q?WerPsIL2Hc07Ntk00DgPBH2BRinAYHQrdc5Wa7n7z0lq3AlQBEkOOEIBMh5z?= =?us-ascii?Q?IHnhadxteJ83yN2WzyR9StZKMKbRxNA/qlzjwCPgnQ/v+w=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ca4d51e-6233-4ef7-b2a0-08d900e4cc68 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3834.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2021 14:34:53.3261 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uyQUFfuY214+c61l6rOG5swRevxnP4wx/LI9DH2MGT9K8YUxK3JKbAYR8Jwns37n X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1146 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 04:26:19PM +0200, Auger Eric wrote: > This was largely done during several confs including plumber, KVM forum, > for several years. Also API docs were shared on the ML. I don't remember > any voice was raised at those moments. I don't think anyone objects to the high level ideas, but implementation does matter. I don't think anyone presented "hey we will tunnel an uAPI through VFIO to the IOMMU subsystem" - did they? Look at the fairly simple IMS situation, for example. This was presented at plumbers too, and the slides were great - but the implementation was too hacky. It required a major rework of the x86 interrupt handling before it was OK. Jason