From: Vipin Sharma <vipinsh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
To: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: David Rientjes <rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
Sean Christopherson
<seanjc-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
Tom Lendacky <thomas.lendacky-5C7GfCeVMHo@public.gmane.org>,
"Singh, Brijesh" <brijesh.singh-5C7GfCeVMHo@public.gmane.org>,
"Grimm, Jon" <jon.grimm-5C7GfCeVMHo@public.gmane.org>,
"Van Tassell,
Eric" <eric.vantassell-5C7GfCeVMHo@public.gmane.org>,
pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org,
hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org,
frankja-tEXmvtCZX7AybS5Ee8rs3A@public.gmane.org,
borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org,
corbet-T1hC0tSOHrs@public.gmane.org,
joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org,
vkuznets-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
wanpengli-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org,
jmattson-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org,
tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org,
mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org,
hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org,
gingell-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org,
dionnaglaze-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org,
kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [Patch v4 1/2] cgroup: svm: Add Encryption ID controller
Date: Tue, 26 Jan 2021 17:11:59 -0800 [thread overview]
Message-ID: <YBC937MFGEEiI63o@google.com> (raw)
In-Reply-To: <YBCRIPcJyB2J85XS-NiLfg/pYEd1N0TnZuCh8vA@public.gmane.org>
On Tue, Jan 26, 2021 at 05:01:04PM -0500, Tejun Heo wrote:
> The whole thing seems pretty immature to me and I agree with you that coming
> up with an abstraction at this stage feels risky.
>
> I'm leaning towards creating a misc controller to shove these things into:
>
> * misc.max and misc.current: nested keyed files listing max and current
> usage for the cgroup.
>
> * Have an API to activate or update a given resource with total resource
> count. I'd much prefer the resource list to be in the controller itself
> rather than being through some dynamic API just so that there is some
> review in what keys get added.
>
> * Top level cgroup lists which resource is active and how many are
> available.
Sounds good, we can have a single top level stat file
misc.stat
Shows how many are supported on the host:
$ cat misc.stat
sev 500
sev_es 10
If total value of some resource is 0 then it will be considered inactive and
won't show in misc.{stat, current, max}
We discussed earlier, instead of having "stat" file we should show
"current" and "capacity" files in the root but I think we can just have stat
at top showing total resources to keep it consistent with other cgroup
files.
Thanks
Vipin
WARNING: multiple messages have this Message-ID (diff)
From: Vipin Sharma <vipinsh@google.com>
To: Tejun Heo <tj@kernel.org>
Cc: David Rientjes <rientjes@google.com>,
Sean Christopherson <seanjc@google.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
"Singh, Brijesh" <brijesh.singh@amd.com>,
"Grimm, Jon" <jon.grimm@amd.com>,
"Van Tassell, Eric" <eric.vantassell@amd.com>,
pbonzini@redhat.com, lizefan@huawei.com, hannes@cmpxchg.org,
frankja@linux.ibm.com, borntraeger@de.ibm.com, corbet@lwn.net,
joro@8bytes.org, vkuznets@redhat.com, wanpengli@tencent.com,
jmattson@google.com, tglx@linutronix.de, mingo@redhat.com,
bp@alien8.de, hpa@zytor.com, gingell@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: [Patch v4 1/2] cgroup: svm: Add Encryption ID controller
Date: Tue, 26 Jan 2021 17:11:59 -0800 [thread overview]
Message-ID: <YBC937MFGEEiI63o@google.com> (raw)
In-Reply-To: <YBCRIPcJyB2J85XS@slm.duckdns.org>
On Tue, Jan 26, 2021 at 05:01:04PM -0500, Tejun Heo wrote:
> The whole thing seems pretty immature to me and I agree with you that coming
> up with an abstraction at this stage feels risky.
>
> I'm leaning towards creating a misc controller to shove these things into:
>
> * misc.max and misc.current: nested keyed files listing max and current
> usage for the cgroup.
>
> * Have an API to activate or update a given resource with total resource
> count. I'd much prefer the resource list to be in the controller itself
> rather than being through some dynamic API just so that there is some
> review in what keys get added.
>
> * Top level cgroup lists which resource is active and how many are
> available.
Sounds good, we can have a single top level stat file
misc.stat
Shows how many are supported on the host:
$ cat misc.stat
sev 500
sev_es 10
If total value of some resource is 0 then it will be considered inactive and
won't show in misc.{stat, current, max}
We discussed earlier, instead of having "stat" file we should show
"current" and "capacity" files in the root but I think we can just have stat
at top showing total resources to keep it consistent with other cgroup
files.
Thanks
Vipin
next prev parent reply other threads:[~2021-01-27 1:11 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 1:28 [Patch v4 0/2] cgroup: KVM: New Encryption IDs cgroup controller Vipin Sharma
[not found] ` <20210108012846.4134815-1-vipinsh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2021-01-08 1:28 ` [Patch v4 1/2] cgroup: svm: Add Encryption ID controller Vipin Sharma
2021-01-08 1:28 ` Vipin Sharma
2021-01-13 15:19 ` Brijesh Singh
2021-01-15 20:59 ` Tejun Heo
2021-01-15 22:18 ` Vipin Sharma
2021-01-16 3:43 ` Tejun Heo
2021-01-16 3:43 ` Tejun Heo
2021-01-16 4:32 ` Vipin Sharma
2021-01-19 15:51 ` Tejun Heo
[not found] ` <YAb//EYCkZ7wnl6D-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2021-01-20 7:13 ` Vipin Sharma
2021-01-20 7:13 ` Vipin Sharma
2021-01-20 16:40 ` Tejun Heo
2021-01-20 23:18 ` Vipin Sharma
2021-01-20 23:32 ` Tejun Heo
2021-01-22 0:09 ` Vipin Sharma
[not found] ` <YAhc8khTUc2AFDcd-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2021-01-21 14:55 ` Tom Lendacky
2021-01-21 14:55 ` Tom Lendacky
[not found] ` <be699d89-1bd8-25ae-fc6f-1e356b768c75-5C7GfCeVMHo@public.gmane.org>
2021-01-21 15:55 ` Tejun Heo
2021-01-21 15:55 ` Tejun Heo
[not found] ` <YAmj4Q2J9htW2Fe8-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2021-01-21 23:12 ` Tom Lendacky
2021-01-21 23:12 ` Tom Lendacky
2021-01-22 1:25 ` Sean Christopherson
[not found] ` <YAopkDN85GtWAj3a-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2021-01-26 20:49 ` David Rientjes
2021-01-26 20:49 ` David Rientjes
2021-01-26 22:01 ` Tejun Heo
2021-01-26 22:02 ` Tejun Heo
[not found] ` <YBCRIPcJyB2J85XS-NiLfg/pYEd1N0TnZuCh8vA@public.gmane.org>
2021-01-27 1:11 ` Vipin Sharma [this message]
2021-01-27 1:11 ` Vipin Sharma
[not found] ` <YBC937MFGEEiI63o-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2021-01-27 14:10 ` Tejun Heo
2021-01-27 14:10 ` Tejun Heo
2021-01-08 1:28 ` [Patch v4 2/2] cgroup: svm: Encryption IDs cgroup documentation Vipin Sharma
2021-01-15 21:00 ` Tejun Heo
2021-01-15 21:41 ` Vipin Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YBC937MFGEEiI63o@google.com \
--to=vipinsh-hpiqsd4aklfqt0dzr+alfa@public.gmane.org \
--cc=borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org \
--cc=bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org \
--cc=brijesh.singh-5C7GfCeVMHo@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=corbet-T1hC0tSOHrs@public.gmane.org \
--cc=dionnaglaze-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
--cc=eric.vantassell-5C7GfCeVMHo@public.gmane.org \
--cc=frankja-tEXmvtCZX7AybS5Ee8rs3A@public.gmane.org \
--cc=gingell-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
--cc=jmattson-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
--cc=jon.grimm-5C7GfCeVMHo@public.gmane.org \
--cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org \
--cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
--cc=mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=pbonzini-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
--cc=seanjc-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
--cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org \
--cc=thomas.lendacky-5C7GfCeVMHo@public.gmane.org \
--cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=vkuznets-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=wanpengli-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org \
--cc=x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.