Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5046213pxj; Wed, 9 Jun 2021 08:00:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2mToDXc9OZUWwJ6hMcIGr84H57wjj5hnjva0rpF8LZDVe2a2he9l09k/CoYQCAPj4R/ca X-Received: by 2002:a05:6402:11cb:: with SMTP id j11mr13979479edw.24.1623250835463; Wed, 09 Jun 2021 08:00:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623250835; cv=pass; d=google.com; s=arc-20160816; b=qpeXxGVdU0+g73+AiN/62KO3/gXwjK7N3/ZJ1t8WRJtiWd4J6d+UNR6WJ9FM4CyUyJ CxVukqTQKYcUDbX7p0Az1G+YZGdee+F7VLPUNe8l2f5AEwZXk3kdf/zFo9uHC0GPZFUm 0ZfZn1O2spSl8arusKZ92Cbyzp+QcCCCnk0iRHx6a9kPF/5q3zTrN2dldU4zhxMRXRD/ yke2PaoiT+l+m9rzXfqRDqiM0EvqUlkbg6+kSaU/AbeEoNg+nzAVUHonnm+yaJW+4WZ6 6tyK5BVBRhNedCfFKVmPzRUZ4z2cNF6D2h2Hksjj/7A/J7hnCz21hc3UKlMWiTg7g+Rx +Xxg== 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=Zi3Ehp5dciR/3OsRjt+oZH6I9B2vKg2y3AKZGxNiUyE=; b=F03L96HsldrtSPKCyOUSAbcwsKyy+ZkdAeroIkbSlwLgF8gICzVM6PxqcCPJxZvZVw 5VUNRfbrMmNHbIh8pk1w8+50ss4IaFpe9KNnFvOTHEVaDQQMZGEk4zd9wsqeOpfAzkFh pAmcnu4rslvPM2TZlbdWqu/80A+IR/YI3qQ8izZuz/in5n/1Aj+E/UV+pj8NbD0sw+Mk FJUpcSLFifS9fYK+wn0nkdTDJTDgYuWojN8dfWbfm+zmUz74phTSPgegRZTPX6F8hBZz hY8GvIrGsFhajhMxseYxMP7Iyhx/nbfwMpniScfFjhAbJzzcuth6/ukFJ36lNEDo4P5s Fn3A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=OkatKtLh; 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 c68si2639726edf.399.2021.06.09.08.00.11; Wed, 09 Jun 2021 08:00:35 -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=OkatKtLh; 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 S239672AbhFIL75 (ORCPT + 99 others); Wed, 9 Jun 2021 07:59:57 -0400 Received: from mail-dm6nam10on2071.outbound.protection.outlook.com ([40.107.93.71]:14126 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232467AbhFIL74 (ORCPT ); Wed, 9 Jun 2021 07:59:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fp4kelBP9n8fPN/ny/w0pb0nWD447dTBF0EuI59NyQEedr1iEmYN3kX95YRyeNBQgstxK0o1XVwO72eGh7ast6iEBBFPbz8qTNEyl/RPHJRBB+Pt7R8xhvUjcYxT3ry4RGjHWLZZS8/b+K8JMMupo+y3Oq/BFSlfspOOaZH1QshwuzGScsoewm9oA403fx/xrKHfLqAu62b4/+bEUHWhaqa9b9IDY5R/hwMkmnBVqv8ThRJG66KhEt7McCCnZVws1ykFoQNbgN5XfQ3kKFF90zEebEq5XkDxKsfSS/LRD9m8qfzcbLAgRZmLBckO2ql2Omr7YAPjxvR9HrXxJn+30A== 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=Zi3Ehp5dciR/3OsRjt+oZH6I9B2vKg2y3AKZGxNiUyE=; b=Zsw3pjcxc9wwKC/hEC0YLHNZsXzSekQ42extbWRtcAnOpNsCjsraEyB5UsS8mID31Efx1o0/3KTi0+y7+ijM8yhoeFCOesQi4uw7eqO/5rIIPQltCnuE43AYehBGT4d9XJJmfqbAWpYnfPeKj454hKEweOk3Iukb2v+0jCxGzg8bj75MWgQH3U5YLb9Ord4IAS7UiFLS0/1VqEqtAE672c3nYhsivBAfaeF+f6NDmt2bw22HIkFC+5ECbnxRvaVEGRzwuwE8NrcNe4izZVeSe87gzNgrrPrgXuuoeJMZ7BrH1rW3sexKQKgSVDjYhtQAz2SezT4YW/HSU7lnXkgCjw== 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=Zi3Ehp5dciR/3OsRjt+oZH6I9B2vKg2y3AKZGxNiUyE=; b=OkatKtLh3V8575TBQSwyWjENXjp2hbeBM1IGCuWOsNQB/MI/0z4TISXKSP8x4YQSdVkJAdOpGbGk93gl9gdiamUAcfb1Aqh4dAEdMsHF0W2qnOVBT+Uc/ZBl4fvFU2Ht9zmSxKKtiShDfMX93/uSPyuoDW+k3h+DoLkDbmbm4k2czpgg1um21O6tSUvuRTA6rNHf5sJCwOYLG90jAvaueHpG5M6Y9BB9akIC0s8MnPEOI6lDx3V1avFKI/TkVbsT5Dk1Vi+P2WOPMujlC7LFle1d2I/mFwKqIZ42d1qXiCtB/XYc3SPHMc0Q8fITjgLIzho452MeayYUzBWQ3aw+Hg== Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; Received: from BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) by BL1PR12MB5255.namprd12.prod.outlook.com (2603:10b6:208:315::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20; Wed, 9 Jun 2021 11:58:01 +0000 Received: from BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e]) by BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::3d51:a3b9:8611:684e%7]) with mapi id 15.20.4219.021; Wed, 9 Jun 2021 11:58:01 +0000 Date: Wed, 9 Jun 2021 08:57:59 -0300 From: Jason Gunthorpe To: "Tian, Kevin" Cc: Alex Williamson , Paolo Bonzini , 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: <20210609115759.GY1002214@nvidia.com> References: <20210604160336.GA414156@nvidia.com> <2c62b5c7-582a-c710-0436-4ac5e8fd8b39@redhat.com> <20210604172207.GT1002214@nvidia.com> <2d1ad075-bec6-bfb9-ce71-ed873795e973@redhat.com> <20210607175926.GJ1002214@nvidia.com> <20210608131547.GE1002214@nvidia.com> <89d30977-119c-49f3-3bf6-d3f7104e07d8@redhat.com> <20210608124700.7b9aa5a6.alex.williamson@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Originating-IP: [47.55.113.94] X-ClientProxiedBy: MN2PR01CA0058.prod.exchangelabs.com (2603:10b6:208:23f::27) 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 MN2PR01CA0058.prod.exchangelabs.com (2603:10b6:208:23f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Wed, 9 Jun 2021 11:58:00 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lqwqN-004b1K-Vc; Wed, 09 Jun 2021 08:57:59 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2ac26a8d-1e84-4705-543e-08d92b3dd48e X-MS-TrafficTypeDiagnostic: BL1PR12MB5255: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ht5nKo57heZEbkW/LAs3/Y8iXz3VaXCNy6G8y55CYtXROSuOuJMVN2eB+fxGioZpsTctCkM08VWSgedbA7lVvvUijWI1NNVNJE9t7PzgtxrJs/55L6D15kU4POGUrAnd3/bI4A+j5oYUUYZxu6daSY0Hkp+s4OjcMIgARfckbeNnjTZjY1FOfwSqJHqK081Spy/9937ukmHg/HyeztGfuI6Gy6TMQPI5sSuYUV5tkX1kKCV0GBGEHUh/Hd+n5TLNOUmiBRqLtIWCpSdu0W9IcAyGgFksxVMaVsBdLzLmktyveSdmoLVozZFdBWeRB3HiArCDzwbF/lwZwG2fZn6nqNErdlxNbVgjDlahOJrd3Ta3VD+mw+lPoqrzF/hmpdZIIwwYzCihgI0pGhsWtyfEzNTlPNjT+j7nAqdeaZSIIK0O3tSvJjPlaVcf53/h0AtoyEOMoA08A6UOD2rHIps3djScEGmm0rc+ZEHb20gudd7VfgInajD9s2FHKxgDkWbBISsX+G5SGauSjIPg4QomN1SID/42srTM/j8h3xAbvneKat9VgmsHemEEDBUh/hHxfRWFloMOUFlzRQ9TAN0/rx1huJK01g4dkLplm7rY2lI= 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)(136003)(366004)(376002)(396003)(346002)(39860400002)(86362001)(1076003)(83380400001)(7416002)(426003)(66556008)(9786002)(36756003)(9746002)(2616005)(66476007)(66946007)(316002)(8676002)(26005)(5660300002)(4326008)(54906003)(33656002)(2906002)(4744005)(478600001)(8936002)(38100700002)(186003)(6916009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BicypZ/fKl4wnHZbuBmYssulZTlL15X36aS7ugykrCYpCLJUj24HzajVC2W9?= =?us-ascii?Q?vsEzgT4S3X2pcMbF5P+2QyVk4oilCp4qJMbzjj8qRvaLZDq9JwxfiWFngkXO?= =?us-ascii?Q?qrDN4n+2JePSK1+2AsgcJDP2N8Ow5EMmbaCWSzdvEShb04MndV7gthwPYnxc?= =?us-ascii?Q?PUM/g5QUCLZiHzOfVYiKhtiC9V5oS4Xq+Z4H6kt1WsuZCI0zB12e500JD94W?= =?us-ascii?Q?I/WK0dXbHXCoLyJKpBt2BxrMPywYfNK0Ce0SAgB2SUdGPAgeb7P52gNSMQiT?= =?us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r5c/Bcl+pa4LT1/V?= =?us-ascii?Q?kaC4sIpPkXg+oWAAc/xTDxlMfM10qwJtnUA+xpcv+cVOUM8z8m1qoV67sv/U?= =?us-ascii?Q?a9nMnneqUHrmR1SZSDqxEsbl71mYLbm4gT8kMH1jKhjBwTp+63EfBN5mLmY5?= =?us-ascii?Q?MEfPO54ZPSTd4OFMIn9GRPi5?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ac26a8d-1e84-4705-543e-08d92b3dd48e X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB5506.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2021 11:58:00.9827 (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: qwl8cCE99ZdLXgtcY20+ho42IXiwJGSNCbZP3yPSIGR6M1rHq5VQ2FGqqOomTXhv X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5255 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 02:49:32AM +0000, Tian, Kevin wrote: > Last unclosed open. Jason, you dislike symbol_get in this contract per > earlier comment. As Alex explained, looks it's more about module > dependency which is orthogonal to how this contract is designed. What > is your opinion now? Generally when you see symbol_get like this it suggests something is wrong in the layering.. Why shouldn't kvm have a normal module dependency on drivers/iommu? Jason