Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 sev 4096-ptr_max
PARAM_VALUE 0 sev->active 1
PARAM_VALUE 0 sev->ghcb_version 0-2
PARAM_VALUE 0 sev->misc_cg 4096-ptr_max
BUF_SIZE 0 sev 320
DATA_SOURCE 0 sev $0
FUZZY_MAX 0 sev->ghcb_version 2
USER_DATA 0 sev->ghcb_version 0-2
USER_DATA 0 sev->vmsa_features 0-u64max
LOCK2 _T->lock

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

Type Parameter Key Value
PARAM_VALUE 0 sev 4096-ptr_max
PARAM_VALUE 0 sev->misc_cg 4096-ptr_max
BUF_SIZE 0 sev 320
DATA_SOURCE 0 sev r to_kvm_sev_info
LOCK2 &kvm->lock
LOCK2 &source_kvm->lock
TYPE_LOCK (struct kvm)->lock