diff options
author | Vipin Sharma <vipinsh@google.com> | 2021-03-30 07:42:06 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2021-04-04 20:34:46 +0300 |
commit | 7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c (patch) | |
tree | f34bad270dc8bfb86bf0bd8b1fdc2666237832ce /include/linux/misc_cgroup.h | |
parent | 25259fc914a1d06ba47263383612777a509281e9 (diff) | |
download | linux-7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c.tar.xz |
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 'include/linux/misc_cgroup.h')
-rw-r--r-- | include/linux/misc_cgroup.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/misc_cgroup.h b/include/linux/misc_cgroup.h index 1195d36558b4..c5af592481c0 100644 --- a/include/linux/misc_cgroup.h +++ b/include/linux/misc_cgroup.h @@ -12,6 +12,12 @@ * Types of misc cgroup entries supported by the host. */ enum misc_res_type { +#ifdef CONFIG_KVM_AMD_SEV + /* AMD SEV ASIDs resource */ + MISC_CG_RES_SEV, + /* AMD SEV-ES ASIDs resource */ + MISC_CG_RES_SEV_ES, +#endif MISC_CG_RES_TYPES }; |