Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1061233pxj; Fri, 4 Jun 2021 05:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz67B8kFZBU+b/x6PLXIZUWAuVpOHN2eYv2gtpMIy1e0No2Vb7WN7SEMoPf1BpbtmTir5/S X-Received: by 2002:a17:907:1b1b:: with SMTP id mp27mr3786891ejc.538.1622808954048; Fri, 04 Jun 2021 05:15:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622808954; cv=pass; d=google.com; s=arc-20160816; b=xy9DZcvzXzPE7TX7Mw/bsjZ5h32dK27/9KadNVVi1VTyfMAZJhuRzpT4AcGBuaMoNN iMZryiLEMYpW4lBAW4Vq3WHWA1jyhTCMOV3KUGuQf91RFHK6dru52vDe4z0RbNBQxwWG zsGnS4akOmzMCcx9YPwlTi/EYnnXhNZhM6YJ4IT78hG+DYJ0QyDdzHwstxQSGBcfG68n Wv9lYDNkTWWuxpQwofdmtpH9DqQdZ4Ee7r9JPabvGGZU89qkwel4HcwFpALnZB8aKLQa 0cmDoXQ6rxpRrscpVZIKdWNHDgTJ/xQHXccKEnH7vNpxLpxz2UWtDgd3B/B/09mtGfiz sJIA== 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=/NE4CihnEdBLKxqgP3DOZBhV1ifgiN0nh0W8pwUu17E=; b=vh3+kwiRTbx9TSRBpypKW7if/ad+WzcKXOMV0l+JKPfQX5Cw+RjDTHt8oSHADIYqk0 URzhYrEITRUDPSzg7QLBkP8MvOkNHbCDA0w1zBISdRAEzB711IMzBZb3tNOMdlwl8wkZ 6a7Y60ln9Yrx8/ZtnW5JKcjvta8ygK2SWlkz6oUpx3us2D5tw1jwURns5EvbCM04drBf iKDFfFs4a2XC69Q8bEyvP9hMjdMjJQXw6sTpXmOc0utBZEBR3LjJdqZcTW8QPjum1gYW fqQwFrLjBOOHSEGpyvxJZnDUfjF6/JUI+CA7COql0mzcHxqoe9fyxs1Bsv651UW1KeEW tSxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b="E5R1/vcE"; 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 d12si4271443edo.215.2021.06.04.05.15.27; Fri, 04 Jun 2021 05:15:54 -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="E5R1/vcE"; 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 S230330AbhFDMP2 (ORCPT + 99 others); Fri, 4 Jun 2021 08:15:28 -0400 Received: from mail-bn8nam08on2050.outbound.protection.outlook.com ([40.107.100.50]:28000 "EHLO NAM04-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230030AbhFDMP1 (ORCPT ); Fri, 4 Jun 2021 08:15:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S3V1U7z3cRRpk6XUaIfxeycw6Y3NqwIQGIwwdo/+Lfxib6lK9kEPxsKHLeJ2UYoFLpvdO7TaNSRMUWIIj8TsIdOSD0HxagOLdei8WllzzFpYs2/6lFhW+onL0aoZt5i3bCR+D/DbXMyqovgSUN4zIFz28xGDNbxJKABdM6jgTpbnaRohVuCyXaS9J97Zb9CONrBzXsXA8zD9FOFrqHcr13zJlt3xi4R1x779RYBv5OyjCcF5WMF93rWFmwQEYoCbCbbw7eoqZKbj7GlYccdra/jRjDGxTu0bBfwiiIhQlyK/90md8zg5so9hg6C5cENzqyfVcjC/Sb6HB7WAubUehw== 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=/NE4CihnEdBLKxqgP3DOZBhV1ifgiN0nh0W8pwUu17E=; b=ZfcX66BbtT3E+XVwbJ+xsMFKNiYizZDkbp3ZHBhdeT0q7zVT42p+QHopf8rcGzaAeePLaaDAMCksm6NVIBkvm4FsceYOubyuXvIKaPCt38E2fnx2fisxZwcQI5Yzhvf25MV5tQO4x9hWcs+QCJUtclz9Q4rB5PpvRW/qO9dCW/VJF3Vbs+oBI9YWdj9MJB1RH90LFVvNkqZ0pVozj0trpLqSm6ApNcOo26qfGRw4beek/w5UTdHbRrnpycWNmFthLTUtvqkIU0Sb4yxEitaNQ5sHRQZ7SeQo044h854i59z1ewNzIJZS1dh9liTYxghBDB1BXV3WZccX5ezyGfVIRg== 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=/NE4CihnEdBLKxqgP3DOZBhV1ifgiN0nh0W8pwUu17E=; b=E5R1/vcEucC/o/dnQvaAxURGyxjI/yOe4aqOnQTBvdW3dh81DtgzwcU1HbNPEXjCSjMS3KHLG2gwDlx1AwJ55pbVpQUR0PEd6tXmderXW+UOpuhE3MwGfxWeXTIIk3LYrv1aJUD3osBeo3nznsbnSv00a7X2JfsB3UzhnH+0Np1O4wTnZmV94IVhnyEfDBoRLcaWjMSVQyE0gTd31/KOEMUIYA3KGOwlCcY3J9yhcQrbiKtVbKMcZJ4rFn5seTJviRn5VXrfOfdi2qJQ3exiTiPZ7whPmYl6/BsczfYSDOijyzOe5wCQv65MWwVI7A743st9jLnpdqZhRUFEFgBdMQ== Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=nvidia.com; Received: from BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) by BL1PR12MB5093.namprd12.prod.outlook.com (2603:10b6:208:309::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Fri, 4 Jun 2021 12:13:39 +0000 Received: from BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e]) by BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e%6]) with mapi id 15.20.4195.024; Fri, 4 Jun 2021 12:13:38 +0000 Date: Fri, 4 Jun 2021 09:13:37 -0300 From: Jason Gunthorpe To: Alex Williamson Cc: "Tian, Kevin" , Jean-Philippe Brucker , "Jiang, Dave" , "Raj, Ashok" , "kvm@vger.kernel.org" , Jonathan Corbet , Robin Murphy , LKML , "iommu@lists.linux-foundation.org" , David Gibson , Kirti Wankhede , David Woodhouse , Jason Wang Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: <20210604121337.GJ1002214@nvidia.com> References: <20210602120111.5e5bcf93.alex.williamson@redhat.com> <20210602180925.GH1002214@nvidia.com> <20210602130053.615db578.alex.williamson@redhat.com> <20210602195404.GI1002214@nvidia.com> <20210602143734.72fb4fa4.alex.williamson@redhat.com> <20210602224536.GJ1002214@nvidia.com> <20210602205054.3505c9c3.alex.williamson@redhat.com> <20210603124036.GU1002214@nvidia.com> <20210603144136.2b68c5c5.alex.williamson@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210603144136.2b68c5c5.alex.williamson@redhat.com> X-Originating-IP: [47.55.113.94] X-ClientProxiedBy: BL0PR05CA0010.namprd05.prod.outlook.com (2603:10b6:208:91::20) To BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mlx.ziepe.ca (47.55.113.94) by BL0PR05CA0010.namprd05.prod.outlook.com (2603:10b6:208:91::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.11 via Frontend Transport; Fri, 4 Jun 2021 12:13:38 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lp8hl-001dIN-Rh; Fri, 04 Jun 2021 09:13:37 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a294eda-15ff-4dc4-32f5-08d927522f83 X-MS-TrafficTypeDiagnostic: BL1PR12MB5093: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ha5FTFsSpZit8DvUGNKV981Ra126ZT+dixvFlDcMzQcnj7wr+pkW4W6lnoyiyGfOczybwnP2D+Z+WV8oIsOcA29NHAOva0Sjk/n7lRoLPJY6Mm840PMVxHTjVS0yjHGOYjkqELCOfn2/2Qv7FEa676MtZzv0biT7zw9MTCQ+neYVG9V401Q//BUArWlaMCkL16YtYbhj2382EeAkinmSbFoZdTy9imAgw6Z+9Mmap94U0UmoLcNaOQW0OvgJNV6JGMazJ4OaWiJW9MuN+ZUG24HkPrYLmmm4+7gZl32Lvesn3tKhsNk706uapWF2FNILg09kbqedQLbU/ZksN3VqAhgYF4fg6hKY/ka62XADLo3E1DtlA4dXR85VHHcxSie2/MFfKJFIACsb7GaqZT/zZ9rHlKhTE0lXTU7Kv3QotpCAwMrI88yiMBd5pG0hGXL/bnVumxeFIZ8WXQUOeEhV1lZVvyEzI56I+/M7u9vUzBJLB+bDZXHEp0KDTExMisSs3drZfrHUxAfXVPGjIAoOCOrkvoAprbq8lFUOIzrAlrTfzFWdncmiCtG3k8NffJSYk8AFlkunhO7NDLbS9R+QYMZ590bTJJeRB6Gy2chVST8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR12MB5506.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(136003)(39860400002)(366004)(396003)(376002)(66946007)(66476007)(66556008)(33656002)(4744005)(1076003)(5660300002)(7416002)(2906002)(6916009)(86362001)(426003)(2616005)(478600001)(8936002)(186003)(26005)(4326008)(9786002)(36756003)(9746002)(54906003)(316002)(8676002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?/NAmOWHQbGYPasTQREseRXAK3INa58CdBte4oLTfq/etAnkIB1zB85qwzwxk?= =?us-ascii?Q?PSHFyXo/3gFo4Ibrf2LRTUW/sxskQHgqI76juRnbWBqd2+soIZoFfbMv/hGU?= =?us-ascii?Q?hqrNhO4UnrWlIBz04SQjofzvjkcmS193ZZ/oLj95mrZEHVlEI2QKIenp8hGR?= =?us-ascii?Q?VMtLQ12kMXz3hbmHoy7iU58RcxmH7rPOEBxTFID1N9/8xyTCQ/RTefrDDXZZ?= =?us-ascii?Q?4yK3pLetNfItqndE2j34MMAc0G3RV27/V3kUjYBKUJvlmq3p768Zl1XyXBoZ?= =?us-ascii?Q?n3d2aOfeno1orOLG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skYmaKeV4y?= =?us-ascii?Q?rfPQfdV1XmHlrfbJi19ilkrI99Iq8seDLLioitM0GlcfKctI/aiubtSgmp6Z?= =?us-ascii?Q?JhaPWNQNIqqHtOsepgMOnusDTFtzeJgAYVHpFKJuQlE7Czg3Jl9vTjdmEp8n?= =?us-ascii?Q?5BjhWAqWEXqmLMPs5OuQeRUb?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a294eda-15ff-4dc4-32f5-08d927522f83 X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB5506.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2021 12:13:38.8869 (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: p8K8k1aOvwIVIFiub8/xBtKGwCB8YsXKikcd1I+aq74YS/QS6xawy+9Z7ZJTpCU+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5093 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 03, 2021 at 02:41:36PM -0600, Alex Williamson wrote: > Could you clarify "vfio_driver"? This is the thing providing the vfio_device_ops function pointers. So vfio-pci can't know anything about this (although your no-snoop control probing idea makes sense to me) But vfio_mlx5_pci can know So can mdev_idxd And kvmgt Jason