Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 3 files:

Smatch caller information:

arch/x86/kvm/svm/sev.c sev_misc_cg_try_charge() -> misc_cg_try_charge()

Type Parameter Key Value
PARAM_VALUE 0 type 0-1
PARAM_VALUE 1 cg 4096-ptr_max
PARAM_VALUE 2 amount 1
FUZZY_MAX 0 type 1
HARD_MAX 0 type 1
HALF_LOCKED2 &kvm->lock
HALF_LOCKED2 &source_kvm->lock
HALF_LOCKED2 _T->lock

arch/x86/kvm/vmx/tdx.c __tdx_td_init() -> misc_cg_try_charge()

Type Parameter Key Value
PARAM_VALUE 0 type 2
PARAM_VALUE 1 cg 4096-ptr_max
PARAM_VALUE 2 amount 1
DATA_SOURCE 1 cg r get_current_misc_cg
LOCK2 &kvm->lock
LOCK2 &kvm->slots_lock
TYPE_LOCK (struct kvm)->lock
TYPE_LOCK (struct kvm)->slots_lock