mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user