Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3673896pxj; Tue, 1 Jun 2021 10:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyedcnupF4ZNX2gm8jLdPxYEhqrV2ddEI1i+G61ZychuJGCyw/Sr/m5V5qh8SaIwCu8t4oN X-Received: by 2002:a02:647:: with SMTP id 68mr14504215jav.29.1622568677317; Tue, 01 Jun 2021 10:31:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622568677; cv=pass; d=google.com; s=arc-20160816; b=zuiLB4j9jlQQLX4hTUvKTx+QKXqk3dP6hddBo2Y0IXBVk9Ib0f8cQLp0ZsiZVRZh+d x+ixnBkE5s3t00FI9GRpYYocy8nMMvcf9oMM9YFytGyNUVmn6tIjggX2wCHVMojdDa0Y NU8N3CFJI2n6NDTphN9+x7WPP8ryE3hdmbwxxw7hXUYodriOhrAH65KH7hijQ1nlN6eG 0Px4CgtCq1BVN5w0EoO8fwl6hlaKareOtyWoNEYdpcbHGfq0iKz5D++6ujBvAdSdU/Wq O4si/OHv5CY+fBX9HW2i+lw7oK4nor5rpPgfgBcAHMmFuEMcZ6U4j86EWfw7c8ptKx2x AJgg== 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=ektvzN/JjzK37kcvqQMMpmH1kkULc2RHONF4Sg0qr+M=; b=pbAhSPhLIcLVDHwaOuJNj8RCzMa4gfu3FNqEZh4M6yLHa0dZ6+bIZvoxH5DksGP5Xy 5M2IDYs95z02cMCuI97BxqmAEj3j1fZUnlpPZJuroD0iVox99bJkD4Xt64CFBjn99UIm vgPV5E+i6mz50bUAiAhPbcvZY/YGmSFrgUJedxf9PiPZNHfwzKzPiaAx3cMtGEwfMn9D 8e70hLvTeSZla0tTPNaICeRF/OreKJpSrDvpNxc5FevEc38iCdRDZ1FfPOKevJfOxt8e 2XvpyedN9h/rxzbRMkbYGdh+0J8c/R1xfV5nrlWdSGFJPFunqRk0970c3U7mlKT6pNhH J1sQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=QQqrkAl+; 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 b10si19626841ilv.99.2021.06.01.10.31.02; Tue, 01 Jun 2021 10:31:17 -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=QQqrkAl+; 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 S233301AbhFARbl (ORCPT + 99 others); Tue, 1 Jun 2021 13:31:41 -0400 Received: from mail-bn7nam10on2042.outbound.protection.outlook.com ([40.107.92.42]:58208 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230289AbhFARbk (ORCPT ); Tue, 1 Jun 2021 13:31:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cY86ppOK1wOHtyOLiGfBDyPyQJfaU8/22SEIWg5bIrQmS6fc+3k4x8YvcevXNOzSZT33bsb88TsxiObAjCrDHRuPgFLyeaQ8aJ+TQjcplTPxrdyV72yKAYRNzVdbnlmPxCLbHlA9hpOlZB4gDpi0tocSa0h/Gyu4qEA6eWRhZRPrCB/tyvnHA97IjmCSFbkRaRO7njiO/GDeIx7duuBYeicD1NbYtcnyqQrQnnOhKgQULtLZ126dxJXbTdCV4AcD3XfUp/uFQu19qJRgAU7SXsWOwtb73Rj9XmLyb0Eoofos5pICjtiEtL0P6habpcBcgBQkkw1YwkDJHQrJIO4GMQ== 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=ektvzN/JjzK37kcvqQMMpmH1kkULc2RHONF4Sg0qr+M=; b=Jxmagfat8d3R0zGs5QN3j1/nN+rQRIgJ8K90XSF4Il4ZpxAAF7lujmd4WPSQUSPN9Kj/eV2ZOUFQ17lthuGImennkYEr1Bm4NfilTVEkpaUtwqmk+/xQ0qxhBcnlSPqq4yse+sY1UZT7uk1DBW8iEGR/Q0VJES8WjBDpsjeyx7ov8rF0yYs0sIhl5ZageG2x8JqGfZs4g0zBfjvF8QzQhZT7uBCUzriqTathT3ivXaAwkBDZn2PqvxUjOeB5CkPrZy5/0wwsVYsgowAaW8bZuzsbPa6lUs1EdLeVns3b1wsKw4pQCglWs3uD21Otr+kAc0eiGNFeV3P9mkOD/BTJTA== 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=ektvzN/JjzK37kcvqQMMpmH1kkULc2RHONF4Sg0qr+M=; b=QQqrkAl+1bhXtUOtVP1h3rpeED2hay5iwaWQKf9KI65yoX60kptHDRWzDaPyuTZTbzMwmOTcf1L8UWj22ZZa8eehVvd5sp2n+GcbybbgRh2KYT6JAej6nbrKqZ29g+0BRv8FWmObn1L2k1g10pMBoyM2zXklRL7WvYIwq71Nznf4JaySnOXwkHvV8KcH5yACxyWOwH5AXgjXxAyhR5F10SyDISdD979jyJyXudQ9+yXCD0umw2xYNyRiVaqO0sFnbqcRZ59AnXdooYi8itx3yzQenvc1vs6A+CeTpXfsxYlN+moCSiegg81atkVhwFORDXHwYN+OiKAdG669TqMXFA== 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 BL1PR12MB5272.namprd12.prod.outlook.com (2603:10b6:208:319::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21; Tue, 1 Jun 2021 17:29:58 +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.4173.030; Tue, 1 Jun 2021 17:29:58 +0000 Date: Tue, 1 Jun 2021 14:29:56 -0300 From: Jason Gunthorpe To: Jason Wang Cc: "Tian, Kevin" , Lu Baolu , Liu Yi L , "Alex Williamson (alex.williamson@redhat.com)\"\"" , "kvm@vger.kernel.org" , Jonathan Corbet , LKML , "iommu@lists.linux-foundation.org" , David Woodhouse Subject: Re: [RFC] /dev/ioasid uAPI proposal Message-ID: <20210601172956.GL1002214@nvidia.com> References: <20210531164118.265789ee@yiliu-dev> <78ee2638-1a03-fcc8-50a5-81040f677e69@redhat.com> <20210601113152.6d09e47b@yiliu-dev> <164ee532-17b0-e180-81d3-12d49b82ac9f@redhat.com> <64898584-a482-e6ac-fd71-23549368c508@linux.intel.com> <429d9c2f-3597-eb29-7764-fad3ec9a934f@redhat.com> <05d7f790-870d-5551-1ced-86926a0aa1a6@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <05d7f790-870d-5551-1ced-86926a0aa1a6@redhat.com> X-Originating-IP: [47.55.113.94] X-ClientProxiedBy: BL1PR13CA0214.namprd13.prod.outlook.com (2603:10b6:208:2bf::9) 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 BL1PR13CA0214.namprd13.prod.outlook.com (2603:10b6:208:2bf::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.9 via Frontend Transport; Tue, 1 Jun 2021 17:29:57 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lo8DE-00HXb3-V3; Tue, 01 Jun 2021 14:29:56 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bad9312f-47b5-4230-d455-08d92522e0b5 X-MS-TrafficTypeDiagnostic: BL1PR12MB5272: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mZjPZT2xkQiM3S3cqzyRso8sMXepSPJQBHB6rrHkNm2QWpfbRe6IhH+c7pWJRxhFxqRZUQdUcC5gRzF15JCAXSkiAGo9I3mvQNajUAMwSabjC/x4+4l+l1qjgg+l/Qs3YcrLo/Orsp+gcNobAKcptmxvHbg6fXJrIdKgONxtYPFKaUf12QHz0YJ20W9irm3MytSCTq5JM3gOtS7h1k3OhS//ZcM3sKFy3ILMCHs9b6to+4ls88IlfGDIHLtUqHhvy4Ru5rKvSWIn05SuExwNoNOxUsRZD5vriJx7poH+TJS6Lw4gzhejDcZRkEdoMgBeGkyPIscIPsqmxgof+RLfxKQIvZ1l3xi+WFHHIiWYZJG+goEGzokPNfvczYEbJ4ZGct8HIKtPCad7H1fNbfFW8mazbFB0KzNmu00oR3bHkwhavr1uSus9dPrPmq8R7wADgxPj/AlQDfSuGu/jnJHQGnTlfQjKfV6qbeTUmPP6MrtR8sTLqW7oCYszTbY/IAA9n24s8Ca1+vOjRMgbPeIlBLnmpYRJGIBzxYx9GsIiFZVkZOTxHWBGjGHsKq9PdQG6gttoqM18nKb05/K52bKntIR0sGsEtPBuGlVwjBFojDg= 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)(396003)(366004)(376002)(136003)(39860400002)(7416002)(54906003)(8676002)(478600001)(66556008)(66476007)(86362001)(2906002)(8936002)(9786002)(9746002)(4326008)(36756003)(38100700002)(5660300002)(66946007)(316002)(2616005)(4744005)(26005)(1076003)(6916009)(426003)(186003)(33656002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?efqTTEOSiLWWca/PUO/M5iLK0FjmhnNpG+Dk2f4XGKXoqfo1u6gJWhBINOKr?= =?us-ascii?Q?+8Ao9Ta7X4yNyQpbfnSDyY6XHtxmKDi+72CuM97l5ZmCvqC02QOJbsPGPZVX?= =?us-ascii?Q?To85TbQI3JNhx3+9yXgo8nLwi8pC/Wp75HzVwMSchKb9nPUJ1HtpFPb5UpKm?= =?us-ascii?Q?yX29CW2uggDWZvQcZ/Nv8hy3l6FEQTOvSt0jKs4WbVM7f86de3pOIiH2kSBx?= =?us-ascii?Q?gKt88Oz/rjBhOKHWSlN+EA05x+bQ4XbFgqlSoTTxGdFjIqMPrs26/B6JHMHO?= =?us-ascii?Q?CaeEZl0K8lqwQG9wUJvRjtApBWLZ2rsFfLwf1EJdTzRBsJzV/bYx74YxZL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FNhAh7mWgzPXUHVlZkKICBfUlHRaxjzp?= =?us-ascii?Q?LlsfFfJGeMcwpZ400z0rAnGvCXLApEZ0TBm7ExHgluHOYxjKO5UyJH87sRF4?= =?us-ascii?Q?Q1MNL+1dynMN9GMaGpdPuK5z?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: bad9312f-47b5-4230-d455-08d92522e0b5 X-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB5506.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2021 17:29:57.9899 (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: TxSoaiAPQMasAJfPJG3Nacw1b4e14hlsyosAuDTctIVEQKlWbSlxS3t6lha1WeX4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5272 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 02:07:05PM +0800, Jason Wang wrote: > For the case of 1M, I would like to know what's the use case for a single > process to handle 1M+ address spaces? For some scenarios every guest PASID will require a IOASID ID # so there is a large enough demand that FDs alone are not a good fit. Further there are global container wide properties that are hard to carry over to a multi-FD model, like the attachment of devices to the container at the startup. > > So this RFC treats fd as a container of address spaces which is each > > tagged by an IOASID. > > If the container and address space is 1:1 then the container seems useless. The examples at the bottom of the document show multiple IOASIDs in the container for a parent/child type relationship Jason