Searched refs:ne_enclave (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/drivers/virt/nitro_enclaves/ |
D | ne_misc_dev.c | 480 static bool ne_donated_cpu(struct ne_enclave *ne_enclave, unsigned int cpu) in ne_donated_cpu() argument 482 if (cpumask_test_cpu(cpu, ne_enclave->vcpu_ids)) in ne_donated_cpu() 527 static int ne_set_enclave_threads_per_core(struct ne_enclave *ne_enclave, in ne_set_enclave_threads_per_core() argument 546 if (core_id >= ne_enclave->nr_parent_vm_cores) { in ne_set_enclave_threads_per_core() 554 cpumask_set_cpu(cpu, ne_enclave->threads_per_core[core_id]); in ne_set_enclave_threads_per_core() 573 static int ne_get_cpu_from_cpu_pool(struct ne_enclave *ne_enclave, u32 *vcpu_id) in ne_get_cpu_from_cpu_pool() argument 585 for (i = 0; i < ne_enclave->nr_parent_vm_cores; i++) in ne_get_cpu_from_cpu_pool() 586 for_each_cpu(cpu, ne_enclave->threads_per_core[i]) in ne_get_cpu_from_cpu_pool() 587 if (!ne_donated_cpu(ne_enclave, cpu)) { in ne_get_cpu_from_cpu_pool() 601 rc = ne_set_enclave_threads_per_core(ne_enclave, core_id, *vcpu_id); in ne_get_cpu_from_cpu_pool() [all …]
|
D | ne_pci_dev.c | 217 struct ne_enclave *ne_enclave = NULL; in ne_event_work_handler() local 231 list_for_each_entry(ne_enclave, &ne_pci_dev->enclaves_list, enclave_list_entry) { in ne_event_work_handler() 232 mutex_lock(&ne_enclave->enclave_info_mutex); in ne_event_work_handler() 238 if (ne_enclave->state != NE_STATE_RUNNING) in ne_event_work_handler() 241 slot_info_req.slot_uid = ne_enclave->slot_uid; in ne_event_work_handler() 250 if (ne_enclave->state != cmd_reply.state) { in ne_event_work_handler() 251 ne_enclave->state = cmd_reply.state; in ne_event_work_handler() 253 ne_enclave->has_event = true; in ne_event_work_handler() 255 wake_up_interruptible(&ne_enclave->eventq); in ne_event_work_handler() 259 mutex_unlock(&ne_enclave->enclave_info_mutex); in ne_event_work_handler()
|
D | ne_misc_dev.h | 64 struct ne_enclave { struct
|