Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2795425rdb; Mon, 4 Dec 2023 07:46:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFW8/G2DKj3z/2ij6IHjyFOhGU6FyYpF04gSeMH6zt9tXdkJIijczxUn91gFoZW5ynGQ11O X-Received: by 2002:a17:903:228f:b0:1cf:bd98:633f with SMTP id b15-20020a170903228f00b001cfbd98633fmr5169841plh.30.1701704790588; Mon, 04 Dec 2023 07:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701704789; cv=none; d=google.com; s=arc-20160816; b=d4HSIYx1UG2+h+lcPg67u7oV1lfIxnAqcxvYuTLN7Jc2B5Lu9zAasEZ4XGVxRs3ewU xp+Hd7dz9MGZMnh9bDB1KsJ1if0r1G2aECl3KS1R5rzCe1YeLAh5N/nB18WVny8wb93v zfGFTxUOwmlCdQuATtuv4X+rj8G7e0MMnSilltoQuL17sCzcyWnSb+9jh+BWWDhCcWPW Qnjhs2iKaJMxocfzGUyn5zPLrFySuWf1NLw9hfykIAJOe0YWNWComt6oHBECB4uHb/gF Y9HuV4khaJkkafOYJWLduvBWGCjhlhUshiez2vjtM+mBdtHUw7oye6bSKn1WVK5/ikq5 /DYg== 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:dkim-signature; bh=Y8iquwFJQyk71rcAf7xkyhz3akCPnZ/KEnHmlA88vUE=; fh=gGAVVGSbjp6MID969hD1MYyE7KWQX/zoybpbjMyz9Zk=; b=YoU8LZL+5zd3Nvdn8spbc9WljvAG6i3jx+zEDaGUoKWfpfZTR2rIMjd8Dl/ff9vu0t WoSzaKVVk7bBrkrzmVfthuBriXJgA92FNviuI+XDcjLbciKVWgQ6xEJGOIqouDUp+DhX 6SvBFygZyBf+CzEH7E85d4435ZjWeAI4l5rsHKB1K57oy5Le72IVJXSLHHWH1lcnlNO+ 2DV2pmnrXi0rHFCeDPVQyCLRlUu/bb52XAR2cTZimGUneumk+RDKwm0y1zE7SUlp0T3L Dd0m6zPneBM9xtETl+lWNUHQ1l6H9w3UVLw3Wt5ELtXb+Pmvptarr1LrUb/7OK4p5mR+ s9bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=GSUQDSm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id s1-20020a170902a50100b001d08ac11b93si2784947plq.374.2023.12.04.07.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:46:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=GSUQDSm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id F01C1807C555; Mon, 4 Dec 2023 07:46:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234647AbjLDPqK (ORCPT + 99 others); Mon, 4 Dec 2023 10:46:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbjLDPqJ (ORCPT ); Mon, 4 Dec 2023 10:46:09 -0500 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0588B0 for ; Mon, 4 Dec 2023 07:46:15 -0800 (PST) Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-77f0e76c948so73314285a.0 for ; Mon, 04 Dec 2023 07:46:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1701704775; x=1702309575; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Y8iquwFJQyk71rcAf7xkyhz3akCPnZ/KEnHmlA88vUE=; b=GSUQDSm5t8HvtbZvi02K5jNSrBWa7EXWLMTt88RQxn3nfqkKvWqrbMnDPMVh63TSIV eChCyvaTYtbgWCaww0/b65ZwY2QcKTK8FQEujdcigBPmRrAKS255b8bOQWrHsA4gAgv6 8IvPY1jVhq+2DAkbwsZww2RVGkpP/DlkrZPXyWmliGI6Ttc3S+JzxTQGdPu8uCNh7VfL r9DWo6SBuvho2npytT0Ps0rLLeUKz+yTMEpHwVTeyC6skSaOa3r/1Hwc1wZh6kMJjisG MebYADY5xL32bwjHpUx88YBvBAVX5ZfM0xvDKZK0Hb6AK346EXBNRMKeCEBM19qenGQQ dwqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701704775; x=1702309575; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Y8iquwFJQyk71rcAf7xkyhz3akCPnZ/KEnHmlA88vUE=; b=SU7iFQatmNCZoyEMWBi3uWeV6nHgoK3edkj15UAMm7bz3GR/hJ+snxF7iDjGpmCoiW LywFKgCddR+6J6D5NZHhyLLc/xeWa9K6QMb3mNsQuWiYWYZgvwmAV1tMZujDER2NDCyg g6MaEnYiCT2hYJ/Wb8gKekEdBk4zVT/sbFZTzyh1aVc6WvOQFZvqRI8Jw5yvIzM2TvMl +42Bu24gPdAYoJoZOpQBcXRDJM3fy71gaIMd/MlqPFxWXrLOMsLYjdZnvfloMvLq4bN6 dIuu/DyH/Y/ghPbHmf+9bBrkSPJLFk5QUXCdrNjV6xVWTBcpvhYOlOnbqHajFS3s7+zx T6TQ== X-Gm-Message-State: AOJu0Yy4pEKwlu1UCROsRVghOvpuxWb3erMuggutBGP4kb12y/KgxMCh NE7dcSRKwdhh6LgV6wo0a9EMpQ== X-Received: by 2002:ae9:f808:0:b0:77b:d6fe:8412 with SMTP id x8-20020ae9f808000000b0077bd6fe8412mr5286240qkh.38.1701704774948; Mon, 04 Dec 2023 07:46:14 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-134-23-187.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.134.23.187]) by smtp.gmail.com with ESMTPSA id d23-20020a05620a159700b0077d749de2a3sm4355611qkk.67.2023.12.04.07.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:46:14 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rAB9C-00B400-1E; Mon, 04 Dec 2023 11:46:14 -0400 Date: Mon, 4 Dec 2023 11:46:14 -0400 From: Jason Gunthorpe To: Pasha Tatashin Cc: akpm@linux-foundation.org, linux-mm@kvack.org, alex.williamson@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] vfio: account iommu allocations Message-ID: <20231204154614.GO1489931@ziepe.ca> References: <20231130200900.2320829-1-pasha.tatashin@soleen.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231130200900.2320829-1-pasha.tatashin@soleen.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 07:46:27 -0800 (PST) On Thu, Nov 30, 2023 at 08:09:00PM +0000, Pasha Tatashin wrote: > iommu allocations should be accounted in order to allow admins to > monitor and limit the amount of iommu memory. > > Signed-off-by: Pasha Tatashin > --- > drivers/vfio/vfio_iommu_type1.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > This patch is spinned of from the series: > >https://lore.kernel.org/all/20231128204938.1453583-1-pasha.tatashin@soleen.com Reviewed-by: Jason Gunthorpe Jason