• Home
  • Raw
  • Download

Lines Matching full:enclave

13  * Load the nitro_enclaves module, setting also the enclave CPU pool. The
14 * enclave CPUs need to be full cores from the same NUMA node. CPU 0 and its
16 * cannot be included in the enclave CPU pool.
44 * the enclave CPUs.
110 * NE_SLEEP_TIME - Amount of time in seconds for the process to keep the enclave alive.
115 * NE_DEFAULT_NR_VCPUS - Default number of vCPUs set for an enclave.
126 * an enclave.
131 * NE_IMAGE_LOAD_HEARTBEAT_CID - Vsock CID for enclave image loading heartbeat logic.
135 * NE_IMAGE_LOAD_HEARTBEAT_PORT - Vsock port for enclave image loading heartbeat logic.
139 * NE_IMAGE_LOAD_HEARTBEAT_VALUE - Heartbeat value for enclave image loading.
144 * struct ne_user_mem_region - User space memory region set for an enclave.
154 * ne_create_vm() - Create a slot for the enclave VM.
156 * @slot_uid: The generated slot uid for the enclave.
157 * @enclave_fd : The generated file descriptor for the enclave.
190 * ne_poll_enclave_fd() - Thread function for polling the enclave fd.
204 printf("Running from poll thread, enclave fd %d\n", enclave_fd); in ne_poll_enclave_fd()
248 * ne_alloc_user_mem_region() - Allocate a user space memory region for an enclave.
276 * ne_load_enclave_image() - Place the enclave image in the enclave memory.
277 * @enclave_fd : The file descriptor associated with the enclave.
278 * @ne_user_mem_regions: User space memory regions allocated for the enclave.
279 * @enclave_image_path : The file path of the enclave image.
315 printf("The enclave memory is smaller than the enclave image size\n"); in ne_load_enclave_image()
324 printf("Error in get image load info, enclave not in init state\n"); in ne_load_enclave_image()
342 printf("Enclave image offset in enclave memory is %lld\n", in ne_load_enclave_image()
347 printf("Error in open enclave image file [%m]\n"); in ne_load_enclave_image()
355 printf("Error in mmap enclave image [%m]\n"); in ne_load_enclave_image()
400 * ne_set_user_mem_region() - Set a user space memory region for the given enclave.
401 * @enclave_fd : The file descriptor associated with the enclave.
402 * @ne_user_mem_region : User space memory region to be set for the enclave.
422 printf("Error in set user memory region, enclave not in init state\n"); in ne_set_user_mem_region()
493 * aside for the enclave.
494 * @ne_user_mem_regions: The user space memory regions associated with an enclave.
508 * ne_add_vcpu() - Add a vCPU to the given enclave.
509 * @enclave_fd : The file descriptor associated with the enclave.
510 * @vcpu_id: vCPU id to be set for the enclave, either provided or
550 printf("Error in add vcpu, enclave not in init state\n"); in ne_add_vcpu()
572 * ne_start_enclave() - Start the given enclave.
573 * @enclave_fd : The file descriptor associated with the enclave.
574 * @enclave_start_info : Enclave metadata used for starting e.g. vsock CID.
589 printf("Error in start enclave, enclave not in init state\n"); in ne_start_enclave()
595 printf("Error in start enclave, no memory regions have been added\n"); in ne_start_enclave()
601 printf("Error in start enclave, no vCPUs have been added\n"); in ne_start_enclave()
607 printf("Error in start enclave, enclave has no full cores set\n"); in ne_start_enclave()
613 printf("Error in start enclave, enclave memory is less than min size\n"); in ne_start_enclave()
619 printf("Error in start enclave, provided invalid flag\n"); in ne_start_enclave()
625 printf("Error in start enclave, provided invalid enclave CID\n"); in ne_start_enclave()
631 printf("Error in start enclave [%m]\n"); in ne_start_enclave()
641 * ne_start_enclave_check_booted() - Start the enclave and wait for a hearbeat
644 * @enclave_fd : The file descriptor associated with the enclave.
695 printf("Enclave started, CID %llu\n", enclave_start_info.enclave_cid); in ne_start_enclave_check_booted()
734 * Read the heartbeat value that the init process in the enclave sends in ne_start_enclave_check_booted()
785 printf("The size of the path to enclave image is higher than max path\n"); in main()
797 printf("Creating enclave slot ...\n"); in main()
806 printf("Enclave fd %d\n", enclave_fd); in main()
841 printf("Enclave memory regions were added\n"); in main()
845 * The vCPU is chosen from the enclave vCPU pool, if the value in main()
856 printf("Added vCPU %d to the enclave\n", ne_vcpus[i]); in main()
859 printf("Enclave vCPUs were added\n"); in main()
863 printf("Error in the enclave start / image loading heartbeat logic [rc=%d]\n", rc); in main()