Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1284469pxb; Thu, 4 Mar 2021 07:45:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6KEP9zllsr0+Jarsr6s4Zmds1ud1MZZ30BYxUblq10bHgPdbY1evwNe2SEBdv5CQtLOPk X-Received: by 2002:a50:ee19:: with SMTP id g25mr5040496eds.351.1614872700825; Thu, 04 Mar 2021 07:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614872700; cv=none; d=google.com; s=arc-20160816; b=wmiflTgtWRLDiS4jFhuG0sanJF6+2vjZ++iha/mShWwt0rynxNHUXL9jH0VlbTnWTF cwja/r+jIVJAFFFaiSqrihreBNTHv5yUGBluzKeeBlFwT6o/XXvbaLH3pIQN/QepVGJC XQqll4KI0GzNUi/m8czisLsoy5Nj10TXeaF4cReK5E4PoYRaimTge++Py8ndKcaHhtPw tWWAatfrXlRWjr6QHbpoUeV8nS0EaAP3V1wfrf4/h6nqEpbTL51mOE/zCkyJjD3ckDBk ZFvh6lzHZ4Rm09nHSlv88mF1K44nF3LBfIGOyeqsCsE/2KjB3sdVZb3XRMsm8EDTJhta 4hew== 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=7yRX9wnbaqglQOqo35jp40oCDrn05rlNxnwnL03DlpE=; b=lgeh4Jc2PHfGBOo6TD2WoEY+PrV/uhHRbhLP+ka6JNyPRQxMqnvgDtW+IJgjjsI2nc 3bJqhHaV8avZgdCdTnzRDrteRJm9s1qRCyXc77fRJZv9QKxZXkDe3WxAErR0/szvZ18E ldv4bN4rF9hDcuHuvqGAwyqTw7GzSTe+7ehXYxwohzGi3VXKLwk9BZQ7ZhKjUYJgX/KW 8/zHSpuzmpwlfjew3zuLyM7rLjYo+4J0q/XNYkGYjuZjw6L653vq/98ZAnCmAq6vaQg5 VIBAQTcKKjNTcCSO1FUbPn9AvPIeQcgu0KA11NRu7dud1wSupiDOKaIvlVIHAVbDzXfQ yB+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KZp4VpCL; 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 q3si14446116eji.445.2021.03.04.07.44.37; Thu, 04 Mar 2021 07:45:00 -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=KZp4VpCL; 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 S236938AbhCDIyY (ORCPT + 99 others); Thu, 4 Mar 2021 03:54:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236904AbhCDIxy (ORCPT ); Thu, 4 Mar 2021 03:53:54 -0500 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6657C061574; Thu, 4 Mar 2021 00:53:13 -0800 (PST) Received: by mail-qk1-x735.google.com with SMTP id l132so25784951qke.7; Thu, 04 Mar 2021 00:53:13 -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=7yRX9wnbaqglQOqo35jp40oCDrn05rlNxnwnL03DlpE=; b=KZp4VpCLyjq4r7v+f3wf3DEJwmNX69ZdxRoq/N35GcQfqmjHiarec+NRj7KIldoeDn pZbEMbqOFxiQNvPhJdL/up4J+DHXdVPtN8l6ev1aGrjKVWrHdVUiyQ3Ne3+oN+ssrls6 LxnEGJ3S+kkZGcOyVXuepIbNqb1RPDtwc1GiQwhln41uDV1zNmeLCoGVCz1Zou/rv8Km 3zoPGw9sfJxB/GP+6HeJLHc7ZL8k/473wsXPli2Df4HTj+afRv1U+MNTSquDZmTG4vZZ 1GO0fzGBFPwvgzS1jPRN+1sMTk1UKbe7A2bA5z1ZcNiHFJUYu/I4XRGD4g+xai+Z2UfJ P1BA== 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=7yRX9wnbaqglQOqo35jp40oCDrn05rlNxnwnL03DlpE=; b=BrsrX6sXJT4Igv+0Dy4ru0hFWHRrHKS8s1CqYahfpFjv50gCTHtU17o+rIa93aOkKx apfyuIMozmBdxcHZbCuU68GxH19Ns2AT31X2qK371pUoNR9V3wA7I7d4echRLgVVhqI1 TD8vctw2hQSAd6qcgU46GV4l4AZ08M/H86Dvi6FJQcfsF45PJYWkT1f8dDk+W5obDj8R V0cs3B9puM29cVdw3MXMzuSoxX/wdLRwMF/NLA/imzA0v2vkStX/SDnOIcMAAR0VuRbA gldMY/GE59QROPINJ/dV5d6DJSmFw0qfjVIltjjDaf5MHM+eDgTO3DG/Ps/GD7h8m37i PYcA== X-Gm-Message-State: AOAM530UPQMHNuz4/4GaSR/srqejclm9+kxQnQTIOLlQEjWRd40f5e67 Le6felvS1iyGBxjTUCtXlAs= X-Received: by 2002:ae9:eb8a:: with SMTP id b132mr2828097qkg.296.1614847992933; Thu, 04 Mar 2021 00:53:12 -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 v145sm19926066qka.27.2021.03.04.00.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 00:53:12 -0800 (PST) Sender: Tejun Heo Date: Thu, 4 Mar 2021 03:53:11 -0500 From: Tejun Heo To: Vipin Sharma Cc: mkoutny@suse.com, rdunlap@infradead.org, thomas.lendacky@amd.com, brijesh.singh@amd.com, jon.grimm@amd.com, eric.vantassell@amd.com, pbonzini@redhat.com, hannes@cmpxchg.org, frankja@linux.ibm.com, borntraeger@de.ibm.com, corbet@lwn.net, seanjc@google.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, gingell@google.com, rientjes@google.com, dionnaglaze@google.com, kvm@vger.kernel.org, x86@kernel.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC v2 1/2] cgroup: sev: Add misc cgroup controller Message-ID: References: <20210302081705.1990283-1-vipinsh@google.com> <20210302081705.1990283-2-vipinsh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, Mar 03, 2021 at 10:12:32PM -0800, Vipin Sharma wrote: > Right now there is no API for the caller to know total usage, unless they > keep their own tally, I was thinking it will be useful to add one more API > > unsigned long misc_cg_res_total_usage(enum misc_res_type type) > > It will return root_cg usage for "type" resource. > Will it be fine? Yeah, that sounds fine. Thanks. -- tejun