Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2055689rda; Tue, 24 Oct 2023 10:56:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFt2cnvt4qs/JuHkb5rOcDiuE329Iu6KQ9eAuQ9s9/lmCV0ZiDQIl/9SaWzeJcYfsh0j3/9 X-Received: by 2002:a05:6a20:258e:b0:14e:43b0:5f99 with SMTP id k14-20020a056a20258e00b0014e43b05f99mr3852721pzd.52.1698170180065; Tue, 24 Oct 2023 10:56:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698170180; cv=pass; d=google.com; s=arc-20160816; b=nHGY3BRz5obJf/dgH2oCA/fUkT+4bcng2ms8xsvG2cBgnsZnYeqT6GhMUUmCv0GhlN TfEwhvqWMYDx+P7eKnLw10eWLT0GruSCLXmNEIdEdPAh1rujukG8b/ty6upjGdP7pCHI 8RZwDFK5juqEY7iwbewymgi9zGzTxVhyqABv6Vgr8qgMpPKl13es5y4c+nuW9uXGqPfN nPP5kRB8rUVLIUfGyVT6PPrhJVxHbrqtA9DzZ0Cq6yQ9l9f2JISMkcn92Tipw+gAdQGl STMfbNZzCXZn02iH8Hs+sQiC2Zsnqk6QKQ5z5syuZ1RrfdGEfisecB0zm9i3UmJUQ0Vc t01w== 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=jnEeaGnPDFRUjt78QOek/uf2Nf5Bh8v08ai2vOEVDvM=; fh=mp6ZRZA4LRKdRSDcmzl6ujmp+qmwc3FjQgVN4/c0rcA=; b=lYhQPGP1k/EM48ReQBCTZ45TQVGHG7Zkah0HuRmjkUprurA75HEDWK2hR9No+RiKKn LybmKE73rb58B2zvqQkqYceLt5yfeVp7h06yxrLBUrmefTlVN8IPAnY/QpqvNoFUoOeI LbT4gkdjTPqshsyicynX7QeOC2CYRWX7s1Zawhz0eTkPK5DqD6vqTgegTr2ANHJtv3Y/ gQXSwyvz/DIRuUzMYq56jsGJKP++Vj6RNHypBhDMAYbumF1eLXOZmUZSmbcjSYLRKrsB 4ORkBFDTfgtgFb6a6gBA46iDKcXnAeeIAnrsWk0bMs7rOF5uI2sVGxWGGAn5oTUD2xZu /j8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VKSK5Emr; 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.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f22-20020a633816000000b0057de1fae0ccsi8986351pga.67.2023.10.24.10.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 10:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=VKSK5Emr; 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.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 262D18029DD6; Tue, 24 Oct 2023 10:56:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343894AbjJXR4N (ORCPT + 99 others); Tue, 24 Oct 2023 13:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234315AbjJXR4L (ORCPT ); Tue, 24 Oct 2023 13:56:11 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2066.outbound.protection.outlook.com [40.107.223.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B17990; Tue, 24 Oct 2023 10:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g16VE7JYw6OvclQIHP1Dr9PHFK/zkN7Tio7/8HG3vOrkU9N0Ka5XOVD/aQUWOOZp1YbxflLylYxXqwC8ONE451Kv9aRTJPyuGwLBIRp3DUW8hu8rkC72oEC8vkrx3Ra3KUz6adHBMhyNDVsNCIMXyM/diXGXdB5u0xkyiUtWjQCSEv67MXK7A/jympOGT/l+C9vyEAJX9QvWrkX+PUBmpusN6Yco8Mnp07C6PeW6llYXnl1c7B82VF5dT5F9FKgDmDejfpMsBNP3qs0SegaL+Fu1AXyiB+ywUdsO6RH7kr0AtIj/PEVZef0aLSohaTJh2M7yj/BuGNo0TMLMfP4l7w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jnEeaGnPDFRUjt78QOek/uf2Nf5Bh8v08ai2vOEVDvM=; b=oRq2kkO6eODUbNI+Ar6CmOMVszNKk59TJmBmHclthfBKIOH0tOyx6mBBFcZDCTDJofv8C96czrvTwJ06u5V2/SkOamtgP5KhoM3ZmB9JagWCNCXUBlnNNWQF+O00JBKomOVSv4HpOs4xAtnvsZG+pIy4Dtyur38qrvNHiJO8t4wPVLQSxPmOFcHpMVFGPpM6mj18Ayy1/7hduWKYjw5DGV0+vo8eCFnUwTwulULEWRumVS5ZU4NXXk51n61xWDu9+amcWRkzn+pG00I33DauBqKRHR5Azy/AWkVtkXU9oH4/mNM6C9h+DjTbiRyjTdfGXkfi7jt/2qrr9yGcFQoMvw== 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=jnEeaGnPDFRUjt78QOek/uf2Nf5Bh8v08ai2vOEVDvM=; b=VKSK5EmrX6c7RwNclACqWB+6kxkSplWEYBqe53VrKaMt+j6lledgv0Zn2Cm7ioSEol4SLD6l15EF6NXzz4Z/neyEtQwJHaY+HvEfv65QHYyOIElh4OPGfmxiug0We1VaveIYN53VrJIAj83llx/9Kcn2G2ANxwJfY3KrGsX+t+ssBroQyWE9y7TByFYX8iCXgjULhqj7Hf5tX7vBxHiVavd931FFw0JSPEE1QjxU/55uY4Ey5WUHrh5VfI971XG9iPFOu+LdR8Wj5c2UxyGfNMz8dT30Zv89YcMQ1/4FRmZMTZH1Dmpo4CiAhWX/4HxgZzYSZ1/x8FPFscRoxCwkyg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by DM4PR12MB5120.namprd12.prod.outlook.com (2603:10b6:5:393::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Tue, 24 Oct 2023 17:56:06 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::3f66:c2b6:59eb:78c2]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::3f66:c2b6:59eb:78c2%6]) with mapi id 15.20.6886.034; Tue, 24 Oct 2023 17:56:06 +0000 Date: Tue, 24 Oct 2023 14:56:04 -0300 From: Jason Gunthorpe To: Yi Liu Cc: joro@8bytes.org, alex.williamson@redhat.com, kevin.tian@intel.com, robin.murphy@arm.com, baolu.lu@linux.intel.com, cohuck@redhat.com, eric.auger@redhat.com, nicolinc@nvidia.com, kvm@vger.kernel.org, mjrosato@linux.ibm.com, chao.p.peng@linux.intel.com, yi.y.sun@linux.intel.com, peterx@redhat.com, jasowang@redhat.com, shameerali.kolothum.thodi@huawei.com, lulu@redhat.com, suravee.suthikulpanit@amd.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, zhenzhong.duan@intel.com, joao.m.martins@oracle.com Subject: Re: [PATCH v6 00/10] iommufd: Add nesting infrastructure (part 1/2) Message-ID: <20231024175604.GU3952@nvidia.com> References: <20231024150609.46884-1-yi.l.liu@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231024150609.46884-1-yi.l.liu@intel.com> X-ClientProxiedBy: SA0PR12CA0028.namprd12.prod.outlook.com (2603:10b6:806:6f::33) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|DM4PR12MB5120:EE_ X-MS-Office365-Filtering-Correlation-Id: b274a030-46b4-41bc-2e9f-08dbd4ba7ed0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EOLqVvuCkYU4cVf+8O7Lqp4xJucG7iKmDG137eJ/sf8E8+2SCK1vX5xr7NhMfjKvLTvjPF8QZ98GIVeum1HzRZz+KWhjrB+7JfH+qLMmJKyy/YcH2jTR54O5Uui4zCf0Z6oz+ZUgoSrFIiSAUKXrCL4K/IN0SPP4eGtIVaxSdRRRF/A4kYJyMy/rhDixAJftvO4mPN4tRwoCYeJXRqLTLeftgQi8G5ONmJyb8SowinJgXI8tY2TZ/Suld0BLbmr2QJ9wyCBFnzhjYCkhOmIpEDtOpqXRkvJBss52SBIpx6zzKMc5Xr12Eu0EIHNid6HpVtL/vpU3CHnpAqo/+gbID4nt9cC9eSQdczY/Zw92smIDdsYPAnPCuV/8BKfRtqfB6o4+UrW97+LV3OdY5af3y8FI58FPUQL1lYj9fvGY2MQhR9zSPG2nduvRJuDAf0f963xLaEJjpN0jkdKh2u0wrejYVYqInbyIc6OygIunaE4jZoEc2u2lGG7HnegEYbIFNfJlKrAfjhqXOBjF0WYMghTDBooQvVSDVL2Y0B+dKIW0iEP9+/f0laTyhIHYr3mL X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(376002)(136003)(346002)(366004)(396003)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(2616005)(1076003)(26005)(38100700002)(2906002)(36756003)(4744005)(7416002)(6506007)(6512007)(33656002)(4326008)(66476007)(66946007)(66556008)(8676002)(41300700001)(5660300002)(86362001)(8936002)(6486002)(6916009)(478600001)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7Pl55ThFXZq9UEGNBfmt6TPqnzVg3h1vvISf8i3/qvekixCOfJaVHdTu74gH?= =?us-ascii?Q?DNMtIWfQn/hCQ5TCjuZ39zR7FxNrCQcyXRLaghCkgs21OG/8ONmXi9TAIvkm?= =?us-ascii?Q?zvX1gLTeghABMMJ49tw9Yqa98bnLdp4mrBbP1eUjyddnl7aDooxuV++NT01r?= =?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SICqkHXhtxGUwGcJw5IrXK?= =?us-ascii?Q?tgNnlmXkC6kfP9Ig5C8cQgf/zra0nWuGJtikS7RFfCezUq0KcULVeAzL2iTy?= =?us-ascii?Q?gPdEgl7iiTkh4ze+Z3Gnvkmxog2g44Dj55rBVSiM9ghRpnHwo6EPJ0y3Q1b0?= =?us-ascii?Q?ndEM5J0NUpwjB4ClPWcYl2lOmgkmdj5Om2VPeuIafdiSQR037rY2KVAtVzMK?= =?us-ascii?Q?c2K+cwGeqwXcxqmyLP+MMLKa88CWejojWSK9kjXUb4FNj2ZuekqtyfgJDWbC?= =?us-ascii?Q?iomTLSPdomOR3IJBZTkaf9T73t0Tp7xX5tNtzp/9tiWTvKnfQMYGDg7HqPYq?= =?us-ascii?Q?MQT5f6mhQ0N+aIVdsYbWWPGvkZWaO5vn617vG/20KP53gVDcGlVfrhBMKO6L?= =?us-ascii?Q?cVfMbeSui12aoaLVPRBtbIlqTB+SmsC/x+CQ1LG3C7Jmys8Ib6C+Uhs1BelX?= =?us-ascii?Q?n+NlqwIU19xVWpifj3uKvn4raJ7KofhiozlH6M14IUtVSD96TrjSl6dAkCvs?= =?us-ascii?Q?KcxmvQL5GNITImtFt0Gi7QJa6IMpeCJ2A1QVbBot?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: b274a030-46b4-41bc-2e9f-08dbd4ba7ed0 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2023 17:56:06.1475 (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: cIKSTieRWUdT5lTe//OqlancfsOID2cJqh9+7YAP4BKHvX9BHuEIR+00WeJwlzSv X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5120 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 10:56:19 -0700 (PDT) On Tue, Oct 24, 2023 at 08:05:59AM -0700, Yi Liu wrote: > Jason Gunthorpe (2): > iommufd: Rename IOMMUFD_OBJ_HW_PAGETABLE to IOMMUFD_OBJ_HWPT_PAGING > iommufd/device: Wrap IOMMUFD_OBJ_HWPT_PAGING-only configurations > > Lu Baolu (1): > iommu: Add IOMMU_DOMAIN_NESTED > > Nicolin Chen (6): > iommufd: Derive iommufd_hwpt_paging from iommufd_hw_pagetable > iommufd: Share iommufd_hwpt_alloc with IOMMUFD_OBJ_HWPT_NESTED > iommufd: Add a nested HW pagetable object > iommu: Add iommu_copy_struct_from_user helper > iommufd/selftest: Add nested domain allocation for mock domain > iommufd/selftest: Add coverage for IOMMU_HWPT_ALLOC with nested HWPTs > > Yi Liu (1): > iommu: Pass in parent domain with user_data to domain_alloc_user op I made the changes noted in the thread and pushed this to linux-next If we need more things then lets have a v6 no later than thursday, otherwise please check/retest what I pushed carefully. Thanks, Jason