]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: TDX: Register TDX host key IDs to cgroup misc controller
authorZhiming Hu <zhiming.hu@intel.com>
Wed, 19 Feb 2025 14:02:51 +0000 (09:02 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:51 +0000 (14:20 -0400)
commit7c035bea94074b19ed560a4f23a76c5a6c8e594f
treebcbdba2d1d5481b6cd156655fd746a3ba9077ceb
parent20d913729c116a43119de76d346e0d3da0dc856b
KVM: TDX: Register TDX host key IDs to cgroup misc controller

TDX host key IDs (HKID) are limit resources in a machine, and the misc
cgroup lets the machine owner track their usage and limits the possibility
of abusing them outside the owner's control.

The cgroup v2 miscellaneous subsystem was introduced to control the
resource of AMD SEV & SEV-ES ASIDs.  Likewise introduce HKIDs as a misc
resource.

Signed-off-by: Zhiming Hu <zhiming.hu@intel.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/tdx.h
arch/x86/kvm/vmx/tdx.c
arch/x86/kvm/vmx/tdx.h
arch/x86/virt/vmx/tdx/tdx.c
include/linux/misc_cgroup.h
kernel/cgroup/misc.c