Lines Matching refs:func_id
68 static bool kvm_smccc_default_allowed(u32 func_id) in kvm_smccc_default_allowed() argument
70 switch (func_id) { in kvm_smccc_default_allowed()
81 if (ARM_SMCCC_OWNER_NUM(func_id) == ARM_SMCCC_OWNER_STANDARD && in kvm_smccc_default_allowed()
82 ARM_SMCCC_FUNC_NUM(func_id) <= 0x1f) in kvm_smccc_default_allowed()
89 if (func_id >= KVM_PSCI_FN(0) && func_id <= KVM_PSCI_FN(3)) in kvm_smccc_default_allowed()
96 static bool kvm_smccc_test_fw_bmap(struct kvm_vcpu *vcpu, u32 func_id) in kvm_smccc_test_fw_bmap() argument
100 switch (func_id) { in kvm_smccc_test_fw_bmap()
209 static u8 kvm_smccc_filter_get_action(struct kvm *kvm, u32 func_id) in kvm_smccc_filter_get_action() argument
211 unsigned long idx = func_id; in kvm_smccc_filter_get_action()
227 static u8 kvm_smccc_get_action(struct kvm_vcpu *vcpu, u32 func_id) in kvm_smccc_get_action() argument
233 u8 action = kvm_smccc_filter_get_action(vcpu->kvm, func_id); in kvm_smccc_get_action()
237 if (kvm_smccc_test_fw_bmap(vcpu, func_id) || in kvm_smccc_get_action()
238 kvm_smccc_default_allowed(func_id)) in kvm_smccc_get_action()
244 static void kvm_prepare_hypercall_exit(struct kvm_vcpu *vcpu, u32 func_id) in kvm_prepare_hypercall_exit() argument
258 .nr = func_id, in kvm_prepare_hypercall_exit()
266 u32 func_id = smccc_get_function(vcpu); in kvm_smccc_call_handler() local
272 action = kvm_smccc_get_action(vcpu, func_id); in kvm_smccc_call_handler()
279 kvm_prepare_hypercall_exit(vcpu, func_id); in kvm_smccc_call_handler()
286 switch (func_id) { in kvm_smccc_call_handler()