Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp623970pxy; Wed, 5 May 2021 09:46:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNfwJGL1/1a33txapYf3m7g2cYFWd99xzQuErGWnOewKZVs6xrlwtgg/l3DucqfhfENGNY X-Received: by 2002:a05:6a00:883:b029:247:562:f8f9 with SMTP id q3-20020a056a000883b02902470562f8f9mr29084531pfj.34.1620233193863; Wed, 05 May 2021 09:46:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620233193; cv=pass; d=google.com; s=arc-20160816; b=oxZ2PAlyM7Bw6Fwr53P1jiOPJW+X1y212It7MbGwUBGT9Ho4/2QNmIsO2pwODvQD2Q n8sObY9Z5iqpjnf3jHyy1KZ06bY5B0jDWWTX3ABD/m4WQCc5twZBUUEDuEAvohIzvoJx E7cEiHePStvMABYHJVVuUhhR4v04sJMXwOw1o69zhVu2dowvEP+IZReM79bTPCMZz0dZ FHCAaKqpy02EAXkGayinC632fIHUh1WfVGTPkF7zBeivKgFmaJDet0HcC+BWoMT1Ys9w gBGWQEIOinWKS/LrFjRHtFjRymWvHOTKxlO2fjj6MmAaraFz3QsCgYCtjIpfGFPxeaW3 lyKw== 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=KH70+oRTAyzUKrrZXAhjmmptE/7Hb7K1efCmOivi7Ws=; b=rr3sI54exkWkdQzj2ACRvtabavGAyd9mzSMmtqQCqWt9aw/bKTDllP2c1CWzqa5B+X pADyQD0cvyope5Xe/VOSOnDeZn8l7FhFujXdw3+G/GvUKL6TzpS8zjHbXZVUhW0OkUOa GYvtKYd4iwBH1lfgrkerQWrSTQqblPQphCM1k3/Th+FwpGFGJim/IYsbboq2vGwQgbSc hxqmYp2HVN7Gd2YNMoaveAwY6eMfx1YwOpr2L4FRuc653btTuOzWV0M+mZS5Wcq2RyuW i3V81cpk4VY1KueozKdxbbj8iMUg+XnmlVfPUJJZu1VNPvGSDk5c0rQP/tOZnwNSR7hb Ymqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b="ScuNMw/M"; 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 g14si7677174pgk.131.2021.05.05.09.46.20; Wed, 05 May 2021 09:46:33 -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="ScuNMw/M"; 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 S235197AbhEEQqM (ORCPT + 99 others); Wed, 5 May 2021 12:46:12 -0400 Received: from mail-mw2nam12on2069.outbound.protection.outlook.com ([40.107.244.69]:63200 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234524AbhEEQkC (ORCPT ); Wed, 5 May 2021 12:40:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mbRhmrQdJMMQAGE1MulLCl0XX9TPKhhhvXyvrwQ82H4b+XB9F4JZqf9g07EZzcCeG7sODmN02sQmdsCRB3lS699yxTv2arDGLpJVehJKmFNmmUgRoNexF1Y20SILVjuFb3iQ0BA+pLYVWQcAJaX7TKEJ1EFtn/xN+Pd/nX/Ytoo6/+6VMhF1SlVsCH51Zx1XmCf5krhgTJ5fUqOYIloBtyUfUh28K+7pXHV/NVccbJ+P/RQAw7PseLNFQZYe67BLjKw6C4qOIRzQKd7AChBiE984XQdbjl+fl0/T44iUevLaAgNG0pl48wOxJsR/MpaA/fjSMCXu2eH2Q2wHFgl4WQ== 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=KH70+oRTAyzUKrrZXAhjmmptE/7Hb7K1efCmOivi7Ws=; b=S6sfBaZOpDno0qIflVDmD+YU5h2NgGD4H+02o3e5USAp91r2GZtRCnMhUSZ4xHSeiSmR/79XtKL1gLTpAe54GCTlkKu4ovNc7ahIDURIGOolWaVGIkXkbmicYQS3SyFPDtJJbC4dvFJgkF4FdIhGbdzl0xGK1zQFnkmZuzB4FlQifzh5DtOvSAuuWwVIFg82Rfj1l9uz2uhspHRpeJ64zZ8GKM+a2xQrfk25jWAynOcf++Haw9bLgvV/UG8Kl6EmqZHGg/i4MeXWQQVYASFvi8QJfbDNesU2EMBWJO+WYnpJEpofd6m8FN/7NTc0Jn3fZ5IJoj0MqgynjM4f08E03g== 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=KH70+oRTAyzUKrrZXAhjmmptE/7Hb7K1efCmOivi7Ws=; b=ScuNMw/M7/LLfEZP0gsU6ggeJlwc4P960HhbR9TXzIjZXVi5M4YzxOlYwIX7NxE+cb+NWvvfzk4r1H7dmQVVUWYK0cK6gvwVNobFPhkNCwq7qW6Gb4z4pff6wDQBnnk1zJmZ0PziFsn5TW7eomXyNDCatxhsB3ZORC/Ow1/TkS+bnOFOyPWY/GjBlZO8aTysd8/vAq+Q1oXPh67RqXCwuWZfwMoJAnzAA/C9CdjNHX+/8H+8DuXGMcN97m1+k8H8CLFnPkN+VCYEI4ovjnKfxqvDtjODHgPbbURzl4kqUsm29xKiT5LfHcLdlutAeSzewEiYI4yns9A3thQY6FypDA== Authentication-Results: ozlabs.ru; dkim=none (message not signed) header.d=none;ozlabs.ru; dmarc=none action=none header.from=nvidia.com; Received: from DM6PR12MB3834.namprd12.prod.outlook.com (2603:10b6:5:14a::12) by DM6PR12MB4497.namprd12.prod.outlook.com (2603:10b6:5:2a5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Wed, 5 May 2021 16:39:04 +0000 Received: from DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::ddb4:2cbb:4589:f039]) by DM6PR12MB3834.namprd12.prod.outlook.com ([fe80::ddb4:2cbb:4589:f039%4]) with mapi id 15.20.4108.026; Wed, 5 May 2021 16:39:04 +0000 Date: Wed, 5 May 2021 13:39:02 -0300 From: Jason Gunthorpe To: Alexey Kardashevskiy Cc: David Gibson , Alex Williamson , "Liu, Yi L" , Jacob Pan , Auger Eric , Jean-Philippe Brucker , "Tian, Kevin" , 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 , Jonathan Corbet , "Raj, Ashok" , "Wu, Hao" , "Jiang, Dave" Subject: Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs Message-ID: <20210505163902.GG1370958@nvidia.com> References: <20210422111337.6ac3624d@redhat.com> <20210427172432.GE1370958@nvidia.com> <20210429002149.GZ1370958@nvidia.com> <20210503160530.GL1370958@nvidia.com> <20210504181537.GC1370958@nvidia.com> <7e5c2276-ca1c-a8af-c15f-72a7c83c8bfa@ozlabs.ru> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e5c2276-ca1c-a8af-c15f-72a7c83c8bfa@ozlabs.ru> X-Originating-IP: [47.55.113.94] X-ClientProxiedBy: BL0PR02CA0046.namprd02.prod.outlook.com (2603:10b6:207:3d::23) 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 (47.55.113.94) by BL0PR02CA0046.namprd02.prod.outlook.com (2603:10b6:207:3d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Wed, 5 May 2021 16:39:03 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1leKYA-0016Eu-Kx; Wed, 05 May 2021 13:39:02 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8bc817a0-8f1b-4820-86cf-08d90fe44b2d X-MS-TrafficTypeDiagnostic: DM6PR12MB4497: 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: bJNqIvqOGTRt3c2KFcm6mtwGkm4lvT9WGWqnNcokrCcmvVt2DfNKduhN3RmTIjz0QIEVdNdwbtULZfNQSxEeYRopL6mDJkwwL7Qa1j3GCi1sIrFkEWZ/3UQ7rUzIfUbqjN5OmlPLLmsTPLErcgJABkgbeeVQFge9Pqu9XeRlPeREwEi8nfH2IhmiF2U5pTyMv182dscosdRCHlBGMacbIGC/FgmdJpNyL67FIsv/nPiu5xM8duOLr0bcuOCqSkW2qdlTCtCd90xJH6jjkcnJAPwMAddTOPO2A7umObw0sQDAh1lEUybFp6OClVs1/FV/3PWMZMdOXyoK0KxqQkk+FTKY0D3UThp6GxSYn67X26iSqe/EBQDabaA6ZT0II70p5MXhZDKXiWwsolbV5o5nbpAJe5R9APuZdgWFoMDhh36myfoX6yDoSMpKL7S3MaJIz9YbZGJWYyo6RvAF8O8P3CaB/bCHhTST+znXZgwpDHsHWDVLUE/dBowkeVGsyq7azAxZm+uw6W9NLBF6ZmHmtjxsSUcqoB27Cgw16SQl7cy7AymVz9tP9h/AWt75hK27f9IWmfhzLGNFN/klkqMissceAPwa2KG/yeRyKAvjXL8= 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)(366004)(376002)(39860400002)(396003)(136003)(346002)(36756003)(426003)(86362001)(7416002)(8676002)(54906003)(2906002)(186003)(316002)(2616005)(33656002)(4326008)(1076003)(66556008)(66946007)(66476007)(5660300002)(6916009)(4744005)(478600001)(38100700002)(9786002)(9746002)(26005)(8936002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?6WKc6r5QMk5MTBzp5Kh4AZ4RZ+5ZzXTw4CZ+2ZsuxllP8MYh8yN6Cv+706id?= =?us-ascii?Q?PttWgu7R+x+mlnf2rGqM88DnXKhZlXc0TQbk7qwlikCZAQvrXcIO6CkOD+Oz?= =?us-ascii?Q?UpTZGM7EuoemCELLY692/DMTmZ+PxysaqYXF6LJD/y7O96nJnBwEeSAKvMC8?= =?us-ascii?Q?n9+xKUo+OWuHMCBm/GXOrGzQkRrCsQlPFKWX6q5OrG7R+AW4/t8tNYyQeEao?= =?us-ascii?Q?4NRDTxnhunWVDWY9YROeFMY9PFeaWwep5IPC3eTfH7K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ZYHNGYFXIYwDOPZf2+Wpt2u3Rjxqjxrwn4?= =?us-ascii?Q?am14ccwoU+IqGPh4fALL6Lo7yQYYIK6T7t1xsF90KVWjTSDtQHwza6+Qg/n7?= =?us-ascii?Q?DJScQHI2/GcLIKvtaMwbjGrcdD50O47zWj0nHfe/Ud61wO0dPjdwDPot5I3M?= =?us-ascii?Q?TqnFJSUiULYo9+oD4e/Vpm2a?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8bc817a0-8f1b-4820-86cf-08d90fe44b2d X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3834.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2021 16:39:04.4976 (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: MQsqC/Q8Nh8Gtd4j+TDtzl+keabd2z8JHK6V4tsy3+ft5AqtuSMTxie21Gb5YWKi X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4497 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 05, 2021 at 02:28:53PM +1000, Alexey Kardashevskiy wrote: > This is a good feature in general when let's say there is a linux supported > device which has a proprietary device firmware update tool which only exists > as an x86 binary and your hardware is not x86 - running qemu + vfio in full > emulation would provide a way to run the tool to update a physical device. That specific use case doesn't really need a vIOMMU though, does it? Jason