aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorVipin Sharma <vipinsh@google.com>2021-03-29 21:42:06 -0700
committerTejun Heo <tj@kernel.org>2021-04-04 13:34:46 -0400
commit7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c (patch)
treef34bad270dc8bfb86bf0bd8b1fdc2666237832ce /kernel/cgroup
parentcgroup: Miscellaneous cgroup documentation. (diff)
downloadlinux-dev-7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c.tar.xz
linux-dev-7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c.zip
svm/sev: Register SEV and SEV-ES ASIDs to the misc controller
Secure Encrypted Virtualization (SEV) and Secure Encrypted Virtualization - Encrypted State (SEV-ES) ASIDs are used to encrypt KVMs on AMD platform. These ASIDs are available in the limited quantities on a host. Register their capacity and usage to the misc controller for tracking via cgroups. Signed-off-by: Vipin Sharma <vipinsh@google.com> Reviewed-by: David Rientjes <rientjes@google.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/misc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/cgroup/misc.c b/kernel/cgroup/misc.c
index 4352bc4a3bd5..ec02d963cad1 100644
--- a/kernel/cgroup/misc.c
+++ b/kernel/cgroup/misc.c
@@ -18,6 +18,12 @@
/* Miscellaneous res name, keep it in sync with enum misc_res_type */
static const char *const misc_res_name[] = {
+#ifdef CONFIG_KVM_AMD_SEV
+ /* AMD SEV ASIDs resource */
+ "sev",
+ /* AMD SEV-ES ASIDs resource */
+ "sev_es",
+#endif
};
/* Root misc cgroup */