From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFDC620E8 for ; Tue, 7 Feb 2023 09:31:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62A2FC433D2; Tue, 7 Feb 2023 09:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675762279; bh=yQnxUKQnZuiwvHejH4T00X1MgcZptzzJo1+kFInbwfU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B28Mgk4kaIXOKHbdBg5wFEluBoncr7bVb7IQkTGBH0gs2RYReA6xi94gop7+4N+Uj QHDTXMb2ozOycPYCZEsPWNIriPYtH4nnLRb+N2ncEh4HU+oHyIruZwk1IZq9xoQ1Ix MVtxOS7s3TPT19Jqn9+YrUcdIJTSzWcZ1h/41gAve1W74wpGCsW3AbzDlgoWvRLSxD gTgN2iCMO0a9habe3DEXmkQfEh/IXSlTg8OVGSSCnr/tZLasHHIO3XSmCdkafa3lb8 SCL4YetP7wXHDYVSqQDu1F4CDkPeUc13uLUWrns0Nl6OS6lJmC6RPRMYVa5RpdubeA HTdvI106njK0A== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pPKJo-008H2j-V9; Tue, 07 Feb 2023 09:31:17 +0000 Date: Tue, 07 Feb 2023 09:31:16 +0000 Message-ID: <86ttzxzusb.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: James Morse , Suzuki K Poulose , kvmarm@lists.linux.dev, Akihiko Odaki , Zenghui Yu Subject: Re: [PATCH] KVM: arm64: Mark some VM-scoped allocations as __GFP_ACCOUNT In-Reply-To: <20230206235229.4174711-1-oliver.upton@linux.dev> References: <20230206235229.4174711-1-oliver.upton@linux.dev> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, kvmarm@lists.linux.dev, akihiko.odaki@daynix.com, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Mon, 06 Feb 2023 23:52:29 +0000, Oliver Upton wrote: > > Generally speaking, any memory allocations that can be associated with a > particular VM should be charged to the cgroup of its process. > Nonetheless, there are a couple spots in KVM/arm64 that aren't currently > accounted: > > - the ccsidr array containing the virtualized cache hierarchy > > - the cpumask of supported cpus, for use of the vPMU on heterogeneous > systems > > Go ahead and set __GFP_ACCOUNT for these allocations. > > Signed-off-by: Oliver Upton Reviewed-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.