cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] cgroup: New misc cgroup controller
@ 2021-02-18 19:55 Vipin Sharma
       [not found] ` <20210218195549.1696769-1-vipinsh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
  2021-02-23 18:24 ` [RFC 0/2] cgroup: New misc cgroup controller Michal Koutný
  0 siblings, 2 replies; 12+ messages in thread
From: Vipin Sharma @ 2021-02-18 19:55 UTC (permalink / raw)
  To: tj-DgEjT+Ai2ygdnm+yROfE0A, thomas.lendacky-5C7GfCeVMHo,
	brijesh.singh-5C7GfCeVMHo, jon.grimm-5C7GfCeVMHo,
	eric.vantassell-5C7GfCeVMHo, pbonzini-H+wXaHxf7aLQT0dZR+AlfA,
	hannes-druUgvl0LCNAfugRpC6u6w, frankja-tEXmvtCZX7AybS5Ee8rs3A,
	borntraeger-tA70FqPdS9bQT0dZR+AlfA
  Cc: corbet-T1hC0tSOHrs, seanjc-hpIqsD4AKlfQT0dZR+AlfA,
	vkuznets-H+wXaHxf7aLQT0dZR+AlfA, wanpengli-1Nz4purKYjRBDgjK7y7TUQ,
	jmattson-hpIqsD4AKlfQT0dZR+AlfA, joro-zLv9SwRftAIdnm+yROfE0A,
	tglx-hfZtesqFncYOwBW4kG4KsQ, mingo-H+wXaHxf7aLQT0dZR+AlfA,
	bp-Gina5bIWoIWzQB+pC5nmwQ, hpa-YMNOUZJC4hwAvxtiuMwx3w,
	gingell-hpIqsD4AKlfQT0dZR+AlfA, rientjes-hpIqsD4AKlfQT0dZR+AlfA,
	dionnaglaze-hpIqsD4AKlfQT0dZR+AlfA, kvm-u79uwXL29TY76Z2rM5mHXA,
	x86-DgEjT+Ai2ygdnm+yROfE0A, cgroups-u79uwXL29TY76Z2rM5mHXA,
	linux-doc-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Vipin Sharma

Hello,

This patch is creating a new misc cgroup controller for allocation and
tracking of resources which are not abstract like other cgroup
controllers.

This controller was initially proposed as encryption_id but after
the feedbacks, it is now changed to misc cgroup.
https://lore.kernel.org/lkml/20210108012846.4134815-2-vipinsh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org/

Changes from the encryption_id controller are:
1. There are only 3 files misc.{capacity, max, current} for all
   resources compared to each resource having their own 3 files in
   encryption_id cgroup.
2. If a resource capacity is 0 then it is considered inactive and won't
   show up in control files.
2. This is a lockless implementation similar to page counter APIs
   compared to single lock implementation in encryption_id cgroup.

Please provide any feedback for this RFC or if it is good for
merging then I can send a patch for merging.

Thanks

Vipin Sharma (2):
  cgroup: sev: Add misc cgroup controller
  cgroup: sev: Miscellaneous cgroup documentation.

 Documentation/admin-guide/cgroup-v1/misc.rst |   1 +
 Documentation/admin-guide/cgroup-v2.rst      |  64 ++-
 arch/x86/kvm/svm/sev.c                       |  60 ++-
 arch/x86/kvm/svm/svm.h                       |   1 +
 include/linux/cgroup_subsys.h                |   4 +
 include/linux/misc_cgroup.h                  |  75 +++
 init/Kconfig                                 |  14 +
 kernel/cgroup/Makefile                       |   1 +
 kernel/cgroup/misc.c                         | 456 +++++++++++++++++++
 9 files changed, 664 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/admin-guide/cgroup-v1/misc.rst
 create mode 100644 include/linux/misc_cgroup.h
 create mode 100644 kernel/cgroup/misc.c

-- 
2.30.0.617.g56c4b15f3c-goog


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-02-26 14:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-18 19:55 [RFC 0/2] cgroup: New misc cgroup controller Vipin Sharma
     [not found] ` <20210218195549.1696769-1-vipinsh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2021-02-18 19:55   ` [RFC 1/2] cgroup: sev: Add " Vipin Sharma
2021-02-23 18:24     ` Michal Koutný
2021-02-25  4:57       ` Vipin Sharma
     [not found]         ` <YDcuQFMbe5MaatBe-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2021-02-25  9:52           ` Michal Koutný
2021-02-25 19:28             ` Vipin Sharma
     [not found]               ` <YDf6bpSxX6I5xdqZ-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2021-02-26 14:23                 ` Michal Koutný
2021-02-18 19:55   ` [RFC 2/2] cgroup: sev: Miscellaneous cgroup documentation Vipin Sharma
2021-02-19 19:02     ` Randy Dunlap
2021-02-24 23:13       ` Vipin Sharma
2021-02-23 18:24 ` [RFC 0/2] cgroup: New misc cgroup controller Michal Koutný
2021-02-25  0:06   ` Vipin Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).