Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1125037pxb; Thu, 4 Mar 2021 04:05:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXoBroTuRpTAL9/UhHI5s72y680sP5kXhUZh97rfuyXsuUQHAOY+0/CytO/qM0v6VocTir X-Received: by 2002:a05:6402:38d:: with SMTP id o13mr3842742edv.337.1614859542922; Thu, 04 Mar 2021 04:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614859542; cv=none; d=google.com; s=arc-20160816; b=bA/DvUt7r6VaC9JRXsO8eVX/7ahh1NJXMtniqqxaldv1iK4A/JJ2XfUb6iJ5fBl79+ 2lpdbCI/GoHJgKkBoY6ZT9tIPil/Drtw9iqis4HTEK92YzLa2UOWLBl9ZLHxhcY3hH49 DfQ/tF52xWu4vY4r3JD/33WpoJjvka48awmw99bfd/u+q5yf8yZGiR+w6AbQSbeBVt5k Et3yJEG0YAXqymHFWTX9cGetaHJ18Z6dFqujv01xipaV3BpwA9I3l9yhV0KlRkEXUVM5 R6v/cQqhnQ8ZgsTc2H2sTYNKDxEQVfCD3YCa4+hwcgdq+TgeXfz2rBrvNUO7R/BLqoqy 8+ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=yAenZ2k324Y74inyHnLSpf4GKMijWe+eb5zJ0f7us3Y=; b=KcWXIsNe3c3mNHP4Kr1A3LZbkmb1K7Ji5eJQTw5dhpVOSUJ3mj5Hor2G8X5ziFwbHl jsSqwycYTTkVTuHRbSA2ORU8IV2NXu+ri7BWiLWiC8bhGFxfRLUM8weMMTNLeJf1aMaj /jz0nqVFaeZwBHReeFttkEfrGZVR3NS8lt5+up8ivvjB0XwaAOpe2H83QvsQe3LPA5AP P3EZsCN1Q1EgMkZJu7AjWpSK7BDHHA4vTsGiVNDtpOFsalKCEZVeJh2UcQJp1WiQrXQN Xg2B2xgdLy7pa9wpWIz48Ip0KUZUnsKpJpJKb2Vwp0LvK9L3WN9q6+M4r7Or96qbIum/ 1mlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Yo/WbLtN"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si20004766ejz.595.2021.03.04.04.05.20; Thu, 04 Mar 2021 04:05:42 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="Yo/WbLtN"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1578068AbhCCSQY (ORCPT + 99 others); Wed, 3 Mar 2021 13:16:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbhCCPpQ (ORCPT ); Wed, 3 Mar 2021 10:45:16 -0500 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8931C06175F; Wed, 3 Mar 2021 07:44:31 -0800 (PST) Received: by mail-qv1-xf32.google.com with SMTP id s17so7334739qvr.12; Wed, 03 Mar 2021 07:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yAenZ2k324Y74inyHnLSpf4GKMijWe+eb5zJ0f7us3Y=; b=Yo/WbLtNEcukoBaVIbtOmoJkqQ78eohGvlv9L6yTWcdDIuU+1DKAsD3fh1HE47Xrp+ QFlB7j0powGVx/NAToiiojNwZYwizMSL3bMhnmCO5LXvVsufMjP7GNnPm8L/4Z04DNED PwkvridEsCPsRoNu/6CyDKV6GbFO6q2fPyLhHKJnUfbBGoKhaEDc7kAAkZXc5ASnjGnj COSukL6HNRaAnW+dWsCVUTEWV6O1Sj57SBKzdk7nqI1XHIiwgqRSH+n321SqE/5pCgGy ZRtUeRAi9hqP8qbDLI7pXQc3l3kAvlrBrJ0G4HVsFGa3WxRqSwAhAuIuaJFI+TFc8FpN EZ4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=yAenZ2k324Y74inyHnLSpf4GKMijWe+eb5zJ0f7us3Y=; b=GOPo44OjVFNC9CLZGaKYRfU+mn2tolvjltWa3daK+7ZlcpvFxAwq2hdmkJLsmQBTSE +PDZQ8p2iZm1odp2wxytxbXAlUxIu//KYIN97JTUbfTfkfJn+1JWmMOeAHEgnQ76g1oa mX2redR5lC67iGBY92ma3ZR26+TNxWLWImWfh4n6XKTQ169oTuEGk9pge1NrdXKw4HU+ ApyMrc2L/35etDuQjxfvm2/hKUnh4ECraMlj1yEbFLTKQNq9uXVMSIE3z8V3xG3yxK4W gcrpY0yVG/JYIsYKC6TGX6/xI/7SICj6mxmRl2Nj1M+vBAa0Dj3bolMuRrYbE1xBakVL dBcw== X-Gm-Message-State: AOAM531wBswscg5TgokYVxEh8Y8lSMLtFfpf4+qxCoJxLRdsEo+JQM39 ymVEFo5Jt28D5WGvXh+xL8oBVANgJ1a/Tg== X-Received: by 2002:ad4:4581:: with SMTP id x1mr3253236qvu.9.1614786270710; Wed, 03 Mar 2021 07:44:30 -0800 (PST) Received: from localhost (2603-7000-9602-8233-06d4-c4ff-fe48-9d05.res6.spectrum.com. [2603:7000:9602:8233:6d4:c4ff:fe48:9d05]) by smtp.gmail.com with ESMTPSA id g6sm1590177qtg.91.2021.03.03.07.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 07:44:29 -0800 (PST) Sender: Tejun Heo Date: Wed, 3 Mar 2021 10:44:28 -0500 From: Tejun Heo To: Jacob Pan Cc: LKML , Joerg Roedel , Lu Baolu , David Woodhouse , iommu@lists.linux-foundation.org, cgroups@vger.kernel.org, Li Zefan , Johannes Weiner , Jean-Philippe Brucker , Alex Williamson , Eric Auger , Jason Gunthorpe , Jonathan Corbet , Raj Ashok , "Tian, Kevin" , Yi Liu , Wu Hao , Dave Jiang Subject: Re: [RFC PATCH 15/18] cgroup: Introduce ioasids controller Message-ID: References: <1614463286-97618-1-git-send-email-jacob.jun.pan@linux.intel.com> <1614463286-97618-16-git-send-email-jacob.jun.pan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1614463286-97618-16-git-send-email-jacob.jun.pan@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 27, 2021 at 02:01:23PM -0800, Jacob Pan wrote: > IOASIDs are used to associate DMA requests with virtual address spaces. > They are a system-wide limited resource made available to the userspace > applications. Let it be VMs or user-space device drivers. > > This RFC patch introduces a cgroup controller to address the following > problems: > 1. Some user applications exhaust all the available IOASIDs thus > depriving others of the same host. > 2. System admins need to provision VMs based on their needs for IOASIDs, > e.g. the number of VMs with assigned devices that perform DMA requests > with PASID. Please take a look at the proposed misc controller: http://lkml.kernel.org/r/20210302081705.1990283-2-vipinsh@google.com Would that fit your bill? Thanks. -- tejun